From 292a1afb4a9019f259a0bb1681b153b1d6675db2 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Wed, 4 Jan 2006 13:42:02 +0000 Subject: [PATCH] Adding MachineDebugInfo as a immutable pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25088 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llc/llc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index fc7c3ed27f3..3f8c9f8250c 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -27,6 +27,7 @@ #include "llvm/Support/FileUtilities.h" #include "llvm/Analysis/Verifier.h" #include "llvm/System/Signals.h" +#include "llvm/CodeGen/MachineDebugInfo.h" #include "llvm/Config/config.h" #include #include @@ -237,6 +238,9 @@ int main(int argc, char **argv) { sys::RemoveFileOnSignal(sys::Path(OutputFilename)); } } + + // Set up collection of debug information + Passes.add(createDebugInfoPass()); // Ask the target to add backend passes as necessary. if (Target.addPassesToEmitFile(Passes, *Out, FileType, Fast)) {