diff options
author | Daniel Malea <daniel.malea@intel.com> | 2013-05-08 20:44:14 +0000 |
---|---|---|
committer | Daniel Malea <daniel.malea@intel.com> | 2013-05-08 20:44:14 +0000 |
commit | 13ace6664fad8b4d0277d16690674f4e1f176642 (patch) | |
tree | 07e183914fcea6659f8e2d4fa527d109a2e703cb /include/llvm/Transforms | |
parent | d0fef32e5f3700c7de6dfc50a1a3815659b7d19e (diff) | |
download | llvm-13ace6664fad8b4d0277d16690674f4e1f176642.tar.gz llvm-13ace6664fad8b4d0277d16690674f4e1f176642.tar.bz2 llvm-13ace6664fad8b4d0277d16690674f4e1f176642.tar.xz |
Add DebugIR pass -- emits IR file and replace source lines with IR lines in MD
- requires existing debug information to be present
- fixes up file name and line number information in metadata
- emits a "<orig_filename>-debug.ll" succinct IR file (without !dbg metadata
or debug intrinsics) that can be read by a debugger
- initialize pass in opt tool to enable the "-debug-ir" flag
- lit tests to follow
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181467 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/Instrumentation.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h index 4aae200dd0..142b40f1ea 100644 --- a/include/llvm/Transforms/Instrumentation.h +++ b/include/llvm/Transforms/Instrumentation.h @@ -78,6 +78,10 @@ FunctionPass *createThreadSanitizerPass(StringRef BlacklistFile = StringRef()); // checking on loads, stores, and other memory intrinsics. FunctionPass *createBoundsCheckingPass(); +/// createDebugIRPass - Create and return a pass that modifies a module's +/// debug metadata to point back to IR instead of the original source file +ModulePass *createDebugIRPass(StringRef FilenamePostfix); + } // End llvm namespace #endif |