diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-08-26 20:33:21 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-08-26 20:33:21 +0000 |
commit | 92848dee31fe0ef6c545f31f11637b594077a5cd (patch) | |
tree | 51a40169a125109841da37b6397b3386d0209f0a /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 41f568223a52a145dcd9fd38e80a846778d4b3f6 (diff) | |
download | llvm-92848dee31fe0ef6c545f31f11637b594077a5cd.zip llvm-92848dee31fe0ef6c545f31f11637b594077a5cd.tar.gz llvm-92848dee31fe0ef6c545f31f11637b594077a5cd.tar.bz2 |
Simplify/clean up debug info suppression in CodeGenFunction
CodeGenFunction is run on only one function - a new object is made for
each new function. I would add an assertion/flag to this effect, but
there's an exception: ObjC properties involve emitting helper functions
that are all emitted by the same CodeGenFunction object, so such a check
is not possible/correct.
llvm-svn: 189277
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index ff7b700..0e8ab4a98 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -953,14 +953,6 @@ public: CodeGenTypes &getTypes() const { return CGM.getTypes(); } ASTContext &getContext() const { return CGM.getContext(); } - /// Returns true if DebugInfo is actually initialized. - bool maybeInitializeDebugInfo() { - if (CGM.getModuleDebugInfo()) { - DebugInfo = CGM.getModuleDebugInfo(); - return true; - } - return false; - } CGDebugInfo *getDebugInfo() { if (DisableDebugInfo) return NULL; |