projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tweak the MCExternalSymbolizer to not use the SymbolLookUp() call back
[oota-llvm.git]
/
lib
/
Analysis
/
ModuleDebugInfoPrinter.cpp
diff --git
a/lib/Analysis/ModuleDebugInfoPrinter.cpp
b/lib/Analysis/ModuleDebugInfoPrinter.cpp
index cf8988a403cf0d3bfb45c3bd6f01867a13eab71a..38498aa5d251e13e80956fa72a45cb12773129b6 100644
(file)
--- a/
lib/Analysis/ModuleDebugInfoPrinter.cpp
+++ b/
lib/Analysis/ModuleDebugInfoPrinter.cpp
@@
-16,13
+16,12
@@
//===----------------------------------------------------------------------===//
#include "llvm/Analysis/Passes.h"
//===----------------------------------------------------------------------===//
#include "llvm/Analysis/Passes.h"
-#include "llvm/Analysis/DebugInfo.h"
-#include "llvm/Assembly/Writer.h"
+#include "llvm/ADT/Statistic.h"
+#include "llvm/DebugInfo.h"
+#include "llvm/IR/Function.h"
#include "llvm/Pass.h"
#include "llvm/Pass.h"
-#include "llvm/Function.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
-#include "llvm/ADT/Statistic.h"
using namespace llvm;
namespace {
using namespace llvm;
namespace {
@@
-30,7
+29,9
@@
namespace {
DebugInfoFinder Finder;
public:
static char ID; // Pass identification, replacement for typeid
DebugInfoFinder Finder;
public:
static char ID; // Pass identification, replacement for typeid
- ModuleDebugInfoPrinter() : ModulePass(&ID) {}
+ ModuleDebugInfoPrinter() : ModulePass(ID) {
+ initializeModuleDebugInfoPrinterPass(*PassRegistry::getPassRegistry());
+ }
virtual bool runOnModule(Module &M);
virtual bool runOnModule(Module &M);
@@
-43,7
+44,7
@@
namespace {
char ModuleDebugInfoPrinter::ID = 0;
INITIALIZE_PASS(ModuleDebugInfoPrinter, "module-debuginfo",
char ModuleDebugInfoPrinter::ID = 0;
INITIALIZE_PASS(ModuleDebugInfoPrinter, "module-debuginfo",
- "Decodes module-level debug info", false, true)
;
+ "Decodes module-level debug info", false, true)
ModulePass *llvm::createModuleDebugInfoPrinterPass() {
return new ModuleDebugInfoPrinter();
ModulePass *llvm::createModuleDebugInfoPrinterPass() {
return new ModuleDebugInfoPrinter();