diff options
author | Victor Hernandez <vhernandez@apple.com> | 2010-01-06 17:00:21 +0000 |
---|---|---|
committer | Victor Hernandez <vhernandez@apple.com> | 2010-01-06 17:00:21 +0000 |
commit | 3e2ec72cea6c154e07aa65c0fff965d1a58859c8 (patch) | |
tree | bda42e4580b6fa3f9a8a991551f32d6da225b75c /lib/AsmParser/LLParser.h | |
parent | bfa08987939a656af8e1436fcc7a8eebb57cfcd1 (diff) | |
download | external_llvm-3e2ec72cea6c154e07aa65c0fff965d1a58859c8.zip external_llvm-3e2ec72cea6c154e07aa65c0fff965d1a58859c8.tar.gz external_llvm-3e2ec72cea6c154e07aa65c0fff965d1a58859c8.tar.bz2 |
When parsing function-local metadata, create a function-local MDNode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/LLParser.h')
-rw-r--r-- | lib/AsmParser/LLParser.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/AsmParser/LLParser.h b/lib/AsmParser/LLParser.h index 595267b..d532081 100644 --- a/lib/AsmParser/LLParser.h +++ b/lib/AsmParser/LLParser.h @@ -294,11 +294,13 @@ namespace llvm { bool ParseValID(ValID &ID, PerFunctionState *PFS = NULL); bool ConvertGlobalValIDToValue(const Type *Ty, ValID &ID, Constant *&V); bool ConvertGlobalOrMetadataValIDToValue(const Type *Ty, ValID &ID, - Value *&V, PerFunctionState *PFS); + Value *&V, PerFunctionState *PFS, + bool *isFunctionLocal); bool ParseGlobalValue(const Type *Ty, Constant *&V); bool ParseGlobalTypeAndValue(Constant *&V); bool ParseGlobalValueVector(SmallVectorImpl<Constant*> &Elts); - bool ParseMDNodeVector(SmallVectorImpl<Value*> &, PerFunctionState *PFS); + bool ParseMDNodeVector(SmallVectorImpl<Value*> &, PerFunctionState *PFS, + bool *isFunctionLocal); // Function Parsing. struct ArgInfo { |