patch for Bug 18833 - ARMAsmParser fails to recognize .req directive alias name in capital letters
lin zuojian
manjian2006 at gmail.com
Mon Feb 17 17:50:39 PST 2014
It's weird to see a test case already lies in test/MC/ARM/dot-req.s and
should show this problem.Here is my patch:
Index: lib/Target/ARM/AsmParser/ARMAsmParser.cpp
===================================================================
--- lib/Target/ARM/AsmParser/ARMAsmParser.cpp (revision 201500)
+++ lib/Target/ARM/AsmParser/ARMAsmParser.cpp (working copy)
@@ -8243,7 +8243,7 @@
Error(L, "unexpected input in .unreq directive.");
return false;
}
- RegisterReqs.erase(Parser.getTok().getIdentifier());
+ RegisterReqs.erase(Parser.getTok().getIdentifier().lower());
Parser.Lex(); // Eat the identifier.
return false;
}
---
lin zuojian
More information about the llvm-commits
mailing list