diff options
author | John McCall <rjmccall@apple.com> | 2013-04-16 22:48:15 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2013-04-16 22:48:15 +0000 |
commit | c8e01705787c984838a16e66e2f9af017f5602a5 (patch) | |
tree | f5a692b406b0b4c72fa4a2e97b676a7bd56014b8 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 0d9dd73847a3ce679f7f17e113158e9ecb9ce04e (diff) | |
download | bcm5719-llvm-c8e01705787c984838a16e66e2f9af017f5602a5.tar.gz bcm5719-llvm-c8e01705787c984838a16e66e2f9af017f5602a5.zip |
Standardize accesses to the TargetInfo in IR-gen.
Patch by Stephen Lin!
llvm-svn: 179638
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 2c3cabe9851..cda3ce0286d 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -31,8 +31,7 @@ using namespace clang; using namespace CodeGen; CodeGenFunction::CodeGenFunction(CodeGenModule &cgm, bool suppressNewContext) - : CodeGenTypeCache(cgm), CGM(cgm), - Target(CGM.getContext().getTargetInfo()), + : CodeGenTypeCache(cgm), CGM(cgm), Target(cgm.getTarget()), Builder(cgm.getModule().getContext()), SanitizePerformTypeCheck(CGM.getSanOpts().Null | CGM.getSanOpts().Alignment | @@ -279,8 +278,8 @@ void CodeGenFunction::EmitFunctionInstrumentation(const char *Fn) { void CodeGenFunction::EmitMCountInstrumentation() { llvm::FunctionType *FTy = llvm::FunctionType::get(VoidTy, false); - llvm::Constant *MCountFn = CGM.CreateRuntimeFunction(FTy, - Target.getMCountName()); + llvm::Constant *MCountFn = + CGM.CreateRuntimeFunction(FTy, getTarget().getMCountName()); EmitNounwindRuntimeCall(MCountFn); } |