diff options
| author | Micah Villmow <villmow@gmail.com> | 2012-10-08 16:25:52 +0000 |
|---|---|---|
| committer | Micah Villmow <villmow@gmail.com> | 2012-10-08 16:25:52 +0000 |
| commit | dd31ca10ef61f8b4cd6fbd323e008dbae1aaabee (patch) | |
| tree | bcee91c88613821aef5d6db5cb83b76e49c8997f /clang/lib/CodeGen/CGDecl.cpp | |
| parent | 26cf9c4379effd48f3a2d6767d89f5f7f6033b54 (diff) | |
| download | bcm5719-llvm-dd31ca10ef61f8b4cd6fbd323e008dbae1aaabee.tar.gz bcm5719-llvm-dd31ca10ef61f8b4cd6fbd323e008dbae1aaabee.zip | |
Move TargetData to DataLayout.
llvm-svn: 165395
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index b9489e3f040..83d5a2f7b2d 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -24,7 +24,7 @@ #include "clang/Frontend/CodeGenOptions.h" #include "llvm/GlobalVariable.h" #include "llvm/Intrinsics.h" -#include "llvm/Target/TargetData.h" +#include "llvm/DataLayout.h" #include "llvm/Type.h" using namespace clang; using namespace CodeGen; @@ -1060,7 +1060,7 @@ void CodeGenFunction::EmitAutoVarInit(const AutoVarEmission &emission) { // If the initializer is all or mostly zeros, codegen with memset then do // a few stores afterward. if (shouldUseMemSetPlusStoresToInitialize(constant, - CGM.getTargetData().getTypeAllocSize(constant->getType()))) { + CGM.getDataLayout().getTypeAllocSize(constant->getType()))) { Builder.CreateMemSet(Loc, llvm::ConstantInt::get(Int8Ty, 0), SizeVal, alignment.getQuantity(), isVolatile); // Zero and undef don't require a stores. |

