Adding MachineDebugInfo as a immutable pass.
authorJim Laskey <jlaskey@mac.com>
Wed, 4 Jan 2006 13:42:02 +0000 (13:42 +0000)
committerJim Laskey <jlaskey@mac.com>
Wed, 4 Jan 2006 13:42:02 +0000 (13:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25088 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llc/llc.cpp

index fc7c3ed27f3cb0b6443c8f7ddafc6adaf0237bf0..3f8c9f8250ced29fcdd542184ca17433a2ff11d8 100644 (file)
@@ -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 <fstream>
 #include <iostream>
@@ -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)) {