diff options
| author | Devang Patel <dpatel@apple.com> | 2009-09-28 21:14:55 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2009-09-28 21:14:55 +0000 |
| commit | b1a4477f1f80e5411ca0fcb6a5191c35870f6fc6 (patch) | |
| tree | 73052d034ecb6681b040cc48b44db6fd78d5459c /llvm/lib/AsmParser | |
| parent | ed31cc2a99224a55dfaab7f087f34602af1c6d30 (diff) | |
| download | bcm5719-llvm-b1a4477f1f80e5411ca0fcb6a5191c35870f6fc6.tar.gz bcm5719-llvm-b1a4477f1f80e5411ca0fcb6a5191c35870f6fc6.zip | |
Do not use global typedef for MDKindID.
llvm-svn: 83016
Diffstat (limited to 'llvm/lib/AsmParser')
| -rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/AsmParser/LLParser.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 0ecf8473c1b..1543e4b0a84 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -2657,7 +2657,7 @@ bool LLParser::ParseBasicBlock(PerFunctionState &PFS) { // Set metadata attached with this instruction. Metadata &TheMetadata = M->getContext().getMetadata(); - for (SmallVector<std::pair<MDKindID, MDNode *>, 2>::iterator + for (SmallVector<std::pair<unsigned, MDNode *>, 2>::iterator MDI = MDsOnInst.begin(), MDE = MDsOnInst.end(); MDI != MDE; ++MDI) TheMetadata.setMD(MDI->first, MDI->second, Inst); MDsOnInst.clear(); diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h index 3420fcf4553..7c516fac619 100644 --- a/llvm/lib/AsmParser/LLParser.h +++ b/llvm/lib/AsmParser/LLParser.h @@ -48,7 +48,7 @@ namespace llvm { /// MetadataCache - This map keeps track of parsed metadata constants. std::map<unsigned, MetadataBase *> MetadataCache; std::map<unsigned, std::pair<MetadataBase *, LocTy> > ForwardRefMDNodes; - SmallVector<std::pair<MDKindID, MDNode *>, 2> MDsOnInst; + SmallVector<std::pair<unsigned, MDNode *>, 2> MDsOnInst; struct UpRefRecord { /// Loc - This is the location of the upref. LocTy Loc; |

