diff options
author | Douglas Katzman <dougk@google.com> | 2016-03-28 14:00:11 +0000 |
---|---|---|
committer | Douglas Katzman <dougk@google.com> | 2016-03-28 14:00:11 +0000 |
commit | d0c11cf7adb0bd2d9fdaca5eba50cd637c8f5ebc (patch) | |
tree | 922ef1b9f58bfaa36489e0da3a0d9f2da26ae653 /llvm/lib/Target/Sparc | |
parent | fcef3e46172bdb8ef0d9e9d08bdd9bf886c16d3d (diff) | |
download | bcm5719-llvm-d0c11cf7adb0bd2d9fdaca5eba50cd637c8f5ebc.tar.gz bcm5719-llvm-d0c11cf7adb0bd2d9fdaca5eba50cd637c8f5ebc.zip |
Sparc: silently ignore .proc assembler directive
Differential Revision: http://reviews.llvm.org/D18463
llvm-svn: 264579
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r-- | llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp b/llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp index 37410c9dcd8..59a7394d68c 100644 --- a/llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp +++ b/llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp @@ -684,6 +684,12 @@ ParseDirective(AsmToken DirectiveID) Parser.eatToEndOfStatement(); return false; } + if (IDVal == ".proc") { + // For compatibility, ignore this directive. + // (It's supposed to be an "optimization" in the Sun assembler) + Parser.eatToEndOfStatement(); + return false; + } // Let the MC layer to handle other directives. return true; |