summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-05-16 00:45:23 +0000
committerEric Christopher <echristo@gmail.com>2013-05-16 00:45:23 +0000
commit75e1768b46550ec0eb72b64b97f90de988583edf (patch)
tree25975f55d3b3b5fec0752c7640937186c0ca742d /clang/lib/CodeGen/CGDebugInfo.h
parent2ec1211c871bd231f0620b3b34f02bbc76aad276 (diff)
downloadbcm5719-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.h4
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.
OpenPOWER on IntegriCloud