]> granicus.if.org Git - clang/commit
Simplify/clean up debug info suppression in CodeGenFunction
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 26 Aug 2013 20:33:21 +0000 (20:33 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 26 Aug 2013 20:33:21 +0000 (20:33 +0000)
commitc3030bc285d90a139fb74629daadef5617283203
treefbc761413931170819d9ce15f564ddad107ee017
parent8d9f800669eabe9978f7698b0c0f37c380115fc0
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
lib/CodeGen/CGBlocks.cpp
lib/CodeGen/CGDeclCXX.cpp
lib/CodeGen/CGObjC.cpp
lib/CodeGen/CGStmt.cpp
lib/CodeGen/CGVTables.cpp
lib/CodeGen/CodeGenFunction.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenCXX/debug-info-globalinit.cpp