diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-14 06:44:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-14 06:44:56 +0000 |
commit | e002694ce29c89faf18bc1937663b83bb9f56275 (patch) | |
tree | 5c51cdb986bd940b6bd99309ec2ac5d0a08442bd | |
parent | 8642763f11ff563408f3e888a543aeef1eae24f4 (diff) |
Remove a gross and crufty "feature" that was never documented and doesn't work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14809 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AsmParser/Lexer.l | 1 | ||||
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 7 |
2 files changed, 1 insertions, 7 deletions
diff --git a/lib/AsmParser/Lexer.l b/lib/AsmParser/Lexer.l index e2476fdf09..d62e47a580 100644 --- a/lib/AsmParser/Lexer.l +++ b/lib/AsmParser/Lexer.l @@ -179,7 +179,6 @@ false { return FALSETOK; } declare { return DECLARE; } global { return GLOBAL; } constant { return CONSTANT; } -const { return CONST; } internal { return INTERNAL; } linkonce { return LINKONCE; } weak { return WEAK; } diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index ea06f875ad..8e6267b584 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -1424,12 +1424,7 @@ FunctionList : FunctionList Function { }; // ConstPool - Constants with optional names assigned to them. -ConstPool : ConstPool OptAssign CONST ConstVal { - // FIXME: THIS SHOULD REALLY BE ELIMINATED. It is totally unneeded. - if (!setValueNameMergingDuplicates($4, $2)) - InsertValue($4); - } - | ConstPool OptAssign TYPE TypesV { // Types can be defined in the const pool +ConstPool : ConstPool OptAssign TYPE TypesV { // Types can be defined in the const pool // Eagerly resolve types. This is not an optimization, this is a // requirement that is due to the fact that we could have this: // |