diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-30 05:48:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-30 05:48:36 +0000 |
commit | 1340dd37087c1d47a85a4461a8d33cd6ccbcfaaf (patch) | |
tree | 87630de18dc00a5faa791fbd9c22be9c200d2382 /lib/AsmParser/LLParser.h | |
parent | c3a6c5c83b5fa7b813de1741ac9e9be702b03846 (diff) | |
download | llvm-1340dd37087c1d47a85a4461a8d33cd6ccbcfaaf.tar.gz llvm-1340dd37087c1d47a85a4461a8d33cd6ccbcfaaf.tar.bz2 llvm-1340dd37087c1d47a85a4461a8d33cd6ccbcfaaf.tar.xz |
now that instruction metadata is only parsed in one place, eliminate the
parser-global MDsOnInst vector and make ParseInstructionMetadata return
its result by-ref through an argument like the entire rest of the parser.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/LLParser.h')
-rw-r--r-- | lib/AsmParser/LLParser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AsmParser/LLParser.h b/lib/AsmParser/LLParser.h index f22c49b630..803832f93d 100644 --- a/lib/AsmParser/LLParser.h +++ b/lib/AsmParser/LLParser.h @@ -83,7 +83,6 @@ namespace llvm { std::vector<PATypeHolder> NumberedTypes; std::vector<TrackingVH<MDNode> > NumberedMetadata; std::map<unsigned, std::pair<TrackingVH<MDNode>, LocTy> > ForwardRefMDNodes; - SmallVector<std::pair<unsigned, MDNode *>, 2> MDsOnInst; struct UpRefRecord { /// Loc - This is the location of the upref. LocTy Loc; @@ -171,7 +170,8 @@ namespace llvm { bool ParseOptionalVisibility(unsigned &Visibility); bool ParseOptionalCallingConv(CallingConv::ID &CC); bool ParseOptionalAlignment(unsigned &Alignment); - bool ParseInstructionMetadata(); + bool ParseInstructionMetadata(SmallVectorImpl<std::pair<unsigned, + MDNode *> > &); bool ParseOptionalCommaAlign(unsigned &Alignment, bool &AteExtraComma); bool ParseIndexList(SmallVectorImpl<unsigned> &Indices,bool &AteExtraComma); bool ParseIndexList(SmallVectorImpl<unsigned> &Indices) { |