diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-11-01 22:30:59 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-11-01 22:30:59 +0000 |
commit | 9c6890a7920909920bdb6a938b5fbc28540c9119 (patch) | |
tree | cbc8b52e1e1b4a22d6a639ef46720028fe51f5ca /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 3494df490b296bb6a63cbd1d3f75952e17388f62 (diff) | |
download | bcm5719-llvm-9c6890a7920909920bdb6a938b5fbc28540c9119.tar.gz bcm5719-llvm-9c6890a7920909920bdb6a938b5fbc28540c9119.zip |
Simplify: replace getContext().getLangOpts() with just getLangOpts().
llvm-svn: 167261
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 730f8661f02..57c4e9e4175 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -351,7 +351,7 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) { llvm_unreachable("Unexpected builtin type"); case BuiltinType::NullPtr: return DBuilder. - createNullPtrType(BT->getName(CGM.getContext().getLangOpts())); + createNullPtrType(BT->getName(CGM.getLangOpts())); case BuiltinType::Void: return llvm::DIType(); case BuiltinType::ObjCClass: @@ -437,7 +437,7 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) { case BuiltinType::ULong: BTName = "long unsigned int"; break; case BuiltinType::ULongLong: BTName = "long long unsigned int"; break; default: - BTName = BT->getName(CGM.getContext().getLangOpts()); + BTName = BT->getName(CGM.getLangOpts()); break; } // Bit size, align and offset of the type. |