forked from OSchip/llvm-project
parent
3462d75aab
commit
39afe7e657
|
@ -603,7 +603,8 @@ lltok::Kind LLLexer::LexIdentifier() {
|
|||
if (JustWhitespaceNewLine(CurPtr))
|
||||
return lltok::kw_zeroext;
|
||||
} else if (Len == 6 && !memcmp(StartChar, "malloc", 6)) {
|
||||
// Autoupgrade malloc instruction
|
||||
// FIXME: Remove in LLVM 3.0.
|
||||
// Autoupgrade malloc instruction.
|
||||
return lltok::kw_malloc;
|
||||
}
|
||||
|
||||
|
|
|
@ -70,6 +70,7 @@ bool LLParser::Run() {
|
|||
/// module.
|
||||
bool LLParser::ValidateEndOfModule() {
|
||||
// Update auto-upgraded malloc calls from "autoupgrade_malloc" to "malloc".
|
||||
// FIXME: Remove in LLVM 3.0.
|
||||
if (MallocF) {
|
||||
MallocF->setName("malloc");
|
||||
// If setName() does not set the name to "malloc", then there is already a
|
||||
|
|
Loading…
Reference in New Issue