[PATCH] Supported llvm.dbg.declare intrinsic in inline pass

David Blaikie dblaikie at gmail.com
Thu Dec 4 10:38:50 PST 2014


================
Comment at: lib/Transforms/Utils/InlineFunction.cpp:875
@@ -874,1 +874,3 @@
         }
+        else if (DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(BI)) {
+          LLVMContext &Ctx = BI->getContext();
----------------
Move the else if to the same line as the preceeding } to match LLVM style

================
Comment at: test/Transforms/Inline/inline_dbg_declare.ll:4
@@ +3,3 @@
+; The purpose of this test is to check that inline pass preserves debug info
+; for variable using the dbg.declare intrinsic.
+
----------------
Could you include the C source in a comment here to demonstrate where this IR came from?

http://reviews.llvm.org/D6525






More information about the llvm-commits mailing list