diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2010-01-10 12:58:08 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2010-01-10 12:58:08 +0000 |
| commit | 82d0a418c8699fc6f4a9417457ffe93d43bba1c1 (patch) | |
| tree | e0ee69587ef2122adc4528807f5899519b8f40e3 /lib/CodeGen/CodeGenTypes.cpp | |
| parent | 82bac50fc0ab125ff5b4308ee91a731e3761eb63 (diff) | |
| download | clang-82d0a418c8699fc6f4a9417457ffe93d43bba1c1.tar.gz clang-82d0a418c8699fc6f4a9417457ffe93d43bba1c1.tar.bz2 clang-82d0a418c8699fc6f4a9417457ffe93d43bba1c1.tar.xz | |
Generalize target weirdness handling having proper layering in mind:
1. Add helper class for sema checks for target attributes
2. Add helper class for codegen of target attributes
As a proof-of-concept - implement msp430's 'interrupt' attribute.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93118 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenTypes.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index cd34e0c064..bfea2367a9 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -28,9 +28,9 @@ using namespace clang; using namespace CodeGen; CodeGenTypes::CodeGenTypes(ASTContext &Ctx, llvm::Module& M, - const llvm::TargetData &TD) + const llvm::TargetData &TD, const ABIInfo &Info) : Context(Ctx), Target(Ctx.Target), TheModule(M), TheTargetData(TD), - TheABIInfo(0) { + TheABIInfo(Info) { } CodeGenTypes::~CodeGenTypes() { @@ -44,7 +44,6 @@ CodeGenTypes::~CodeGenTypes() { while (I != E) delete &*I++; } - delete TheABIInfo; } /// ConvertType - Convert the specified type to its LLVM form. |
