diff options
| author | Devang Patel <dpatel@apple.com> | 2007-05-01 21:15:47 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2007-05-01 21:15:47 +0000 |
| commit | 09f162ca6a10446d6377b957f3a58ac92ce38306 (patch) | |
| tree | b41e816449956582e447ab616707e1afbf1a88fe /llvm/lib/CodeGen/AsmPrinter.cpp | |
| parent | a612049dd849d1e659eeaeefbcf82147af7f669f (diff) | |
| download | bcm5719-llvm-09f162ca6a10446d6377b957f3a58ac92ce38306.tar.gz bcm5719-llvm-09f162ca6a10446d6377b957f3a58ac92ce38306.zip | |
Do not use typeinfo to identify pass in pass manager.
llvm-svn: 36632
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp index aa71ee0b6db..4ce379c3e4b 100644 --- a/llvm/lib/CodeGen/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter.cpp @@ -32,9 +32,10 @@ using namespace llvm; static cl::opt<bool> AsmVerbose("asm-verbose", cl::Hidden, cl::desc("Add comments to directives.")); +const int AsmPrinter::ID = 0; AsmPrinter::AsmPrinter(std::ostream &o, TargetMachine &tm, const TargetAsmInfo *T) -: FunctionNumber(0), O(o), TM(tm), TAI(T) + : MachineFunctionPass((intptr_t)&ID), FunctionNumber(0), O(o), TM(tm), TAI(T) {} std::string AsmPrinter::getSectionForFunction(const Function &F) const { |

