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/CGClass.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/CGClass.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGClass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp index 2ececb03651..05925567b0b 100644 --- a/clang/lib/CodeGen/CGClass.cpp +++ b/clang/lib/CodeGen/CGClass.cpp @@ -710,7 +710,7 @@ void CodeGenFunction::EmitConstructorBody(FunctionArgList &Args) { // Before we go any further, try the complete->base constructor // delegation optimization. if (CtorType == Ctor_Complete && IsConstructorDelegationValid(Ctor) && - CGM.getContext().getTargetInfo().getCXXABI().hasConstructorVariants()) { + CGM.getTarget().getCXXABI().hasConstructorVariants()) { if (CGDebugInfo *DI = getDebugInfo()) DI->EmitLocation(Builder, Ctor->getLocEnd()); EmitDelegateCXXConstructorCall(Ctor, Ctor_Base, Args); @@ -1278,7 +1278,7 @@ void CodeGenFunction::EmitDestructorBody(FunctionArgList &Args) { EnterDtorCleanups(Dtor, Dtor_Complete); if (!isTryBody && - CGM.getContext().getTargetInfo().getCXXABI().hasDestructorVariants()) { + CGM.getTarget().getCXXABI().hasDestructorVariants()) { EmitCXXDestructorCall(Dtor, Dtor_Base, /*ForVirtualBase=*/false, /*Delegating=*/false, LoadCXXThis()); break; |

