diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-04-06 23:10:54 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-04-06 23:10:54 +0000 |
| commit | fc4379f916dbc7d31d0605f5f2d252ac4626f31b (patch) | |
| tree | e10978a7e1d145daef650f108b3e99f1aebad978 /clang/lib/CodeGen | |
| parent | f1e4ec28980552371d513f06ea643bfc2043e840 (diff) | |
| download | bcm5719-llvm-fc4379f916dbc7d31d0605f5f2d252ac4626f31b.tar.gz bcm5719-llvm-fc4379f916dbc7d31d0605f5f2d252ac4626f31b.zip | |
remove the Decl::getCanonicalType() method.
llvm-svn: 49295
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 3fcd60e7b6f..8255c12f010 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -66,7 +66,7 @@ void CodeGenFunction::EmitBlockVarDecl(const BlockVarDecl &D) { } void CodeGenFunction::EmitStaticBlockVarDecl(const BlockVarDecl &D) { - QualType Ty = D.getCanonicalType(); + QualType Ty = D.getType(); assert(Ty->isConstantSizeType() && "VLAs can't be static"); llvm::Value *&DMEntry = LocalDeclMap[&D]; @@ -94,14 +94,13 @@ void CodeGenFunction::EmitStaticBlockVarDecl(const BlockVarDecl &D) { Init, ContextName + "." + D.getName(), &CGM.getModule(), 0, Ty.getAddressSpace()); - } /// EmitLocalBlockVarDecl - Emit code and set up an entry in LocalDeclMap for a /// variable declaration with auto, register, or no storage class specifier. /// These turn into simple stack objects. void CodeGenFunction::EmitLocalBlockVarDecl(const BlockVarDecl &D) { - QualType Ty = D.getCanonicalType(); + QualType Ty = D.getType(); llvm::Value *DeclPtr; if (Ty->isConstantSizeType()) { @@ -133,7 +132,7 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const BlockVarDecl &D) { /// Emit an alloca for the specified parameter and set up LocalDeclMap. void CodeGenFunction::EmitParmDecl(const ParmVarDecl &D, llvm::Value *Arg) { - QualType Ty = D.getCanonicalType(); + QualType Ty = D.getType(); llvm::Value *DeclPtr; if (!Ty->isConstantSizeType()) { |

