diff options
author | Eric Christopher <echristo@gmail.com> | 2013-05-16 00:45:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-05-16 00:45:23 +0000 |
commit | 75e1768b46550ec0eb72b64b97f90de988583edf (patch) | |
tree | 25975f55d3b3b5fec0752c7640937186c0ca742d /clang/lib/CodeGen/CGDebugInfo.h | |
parent | 2ec1211c871bd231f0620b3b34f02bbc76aad276 (diff) | |
download | bcm5719-llvm-75e1768b46550ec0eb72b64b97f90de988583edf.tar.gz bcm5719-llvm-75e1768b46550ec0eb72b64b97f90de988583edf.zip |
Replace a pile of calls with an instance variable that's set
once. Should be no functional change.
llvm-svn: 181964
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index bad13b96ad2..589192fd227 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -18,6 +18,7 @@ #include "clang/AST/Expr.h" #include "clang/AST/Type.h" #include "clang/Basic/SourceLocation.h" +#include "clang/Frontend/CodeGenOptions.h" #include "llvm/ADT/DenseMap.h" #include "llvm/DIBuilder.h" #include "llvm/DebugInfo.h" @@ -46,6 +47,7 @@ namespace CodeGen { /// the backend. class CGDebugInfo { CodeGenModule &CGM; + CodeGenOptions::DebugInfoKind DebugKind; llvm::DIBuilder DBuilder; llvm::DICompileUnit TheCU; SourceLocation CurLoc, PrevLoc; @@ -274,7 +276,7 @@ public: /// getOrCreateInterfaceType - Emit an objective c interface type standalone /// debug info. llvm::DIType getOrCreateInterfaceType(QualType Ty, - SourceLocation Loc); + SourceLocation Loc); private: /// EmitDeclare - Emit call to llvm.dbg.declare for a variable declaration. |