Add ParseInlineMetadata() which can parses metadata that refers to an instruction. Extend ParseParameterList() to use this new function so that calls to llvm.dbg.declare can pass inline metadata

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90497 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Victor Hernandez
2009-12-03 23:40:58 +00:00
parent 4dc4a61c0c
commit 1971556cc2
2 changed files with 49 additions and 8 deletions

View File

@@ -279,7 +279,9 @@ namespace llvm {
LocTy Loc;
return ParseTypeAndBasicBlock(BB, Loc, PFS);
}
bool ParseInlineMetadata(Value *&V, PerFunctionState &PFS);
struct ParamInfo {
LocTy Loc;
Value *V;