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 | c3030bc285d90a139fb74629daadef5617283203 (patch) | |
| tree | fbc761413931170819d9ce15f564ddad107ee017 /lib/CodeGen/CodeGenFunction.h | |
| parent | 8d9f800669eabe9978f7698b0c0f37c380115fc0 (diff) | |
| download | clang-c3030bc285d90a139fb74629daadef5617283203.tar.gz clang-c3030bc285d90a139fb74629daadef5617283203.tar.bz2 clang-c3030bc285d90a139fb74629daadef5617283203.tar.xz | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
| -rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index ff7b700433..0e8ab4a987 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/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; |
