mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-04 18:38:05 +00:00
remove the code added in r90497. It has several major issues and no tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92288 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
287881d510
commit
c49363bcd9
@ -568,37 +568,6 @@ bool LLParser::ParseStandaloneMetadata() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ParseInlineMetadata:
|
|
||||||
/// !{type %instr}
|
|
||||||
/// !{...} MDNode
|
|
||||||
/// !"foo" MDString
|
|
||||||
bool LLParser::ParseInlineMetadata(Value *&V, PerFunctionState &PFS) {
|
|
||||||
assert(Lex.getKind() == lltok::Metadata && "Only for Metadata");
|
|
||||||
V = 0;
|
|
||||||
|
|
||||||
Lex.Lex();
|
|
||||||
if (EatIfPresent(lltok::lbrace)) {
|
|
||||||
if (ParseTypeAndValue(V, PFS) ||
|
|
||||||
ParseToken(lltok::rbrace, "expected end of metadata node"))
|
|
||||||
return true;
|
|
||||||
|
|
||||||
V = MDNode::get(Context, &V, 1);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// FIXME: This can't possibly work at all. r90497
|
|
||||||
|
|
||||||
// Standalone metadata reference
|
|
||||||
// !{ ..., !42, ... }
|
|
||||||
if (!ParseMDNode((MDNode *&)V))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// MDString:
|
|
||||||
// '!' STRINGCONSTANT
|
|
||||||
if (ParseMDString((MDString *&)V)) return true;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// ParseAlias:
|
/// ParseAlias:
|
||||||
/// ::= GlobalVar '=' OptionalVisibility 'alias' OptionalLinkage Aliasee
|
/// ::= GlobalVar '=' OptionalVisibility 'alias' OptionalLinkage Aliasee
|
||||||
/// Aliasee
|
/// Aliasee
|
||||||
@ -1408,14 +1377,6 @@ bool LLParser::ParseParameterList(SmallVectorImpl<ParamInfo> &ArgList,
|
|||||||
if (ParseType(ArgTy, ArgLoc))
|
if (ParseType(ArgTy, ArgLoc))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Parse metadata operands to calls (for intrinsics).
|
|
||||||
if (Lex.getKind() == lltok::Metadata) {
|
|
||||||
if (ParseInlineMetadata(V, PFS))
|
|
||||||
return true;
|
|
||||||
ArgList.push_back(ParamInfo(ArgLoc, V, Attribute::None));
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Otherwise, handle normal operands.
|
// Otherwise, handle normal operands.
|
||||||
if (ParseOptionalAttrs(ArgAttrs1, 0) ||
|
if (ParseOptionalAttrs(ArgAttrs1, 0) ||
|
||||||
ParseValue(ArgTy, V, PFS) ||
|
ParseValue(ArgTy, V, PFS) ||
|
||||||
|
@ -283,8 +283,6 @@ namespace llvm {
|
|||||||
return ParseTypeAndBasicBlock(BB, Loc, PFS);
|
return ParseTypeAndBasicBlock(BB, Loc, PFS);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ParseInlineMetadata(Value *&V, PerFunctionState &PFS);
|
|
||||||
|
|
||||||
struct ParamInfo {
|
struct ParamInfo {
|
||||||
LocTy Loc;
|
LocTy Loc;
|
||||||
Value *V;
|
Value *V;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user