diff options
author | Bob Wilson <bob.wilson@apple.com> | 2009-04-06 21:46:51 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2009-04-06 21:46:51 +0000 |
commit | 5260c4c74326dd6228eaff73d1e634e228ee9f4f (patch) | |
tree | 06f2e73a1dacdbbe2a33b099bd5c1bfc91f67eba /lib/Target/ARM/AsmPrinter | |
parent | d974357701ee073f20515c04786fa88ccb4ce7db (diff) | |
download | external_llvm-5260c4c74326dd6228eaff73d1e634e228ee9f4f.zip external_llvm-5260c4c74326dd6228eaff73d1e634e228ee9f4f.tar.gz external_llvm-5260c4c74326dd6228eaff73d1e634e228ee9f4f.tar.bz2 |
Handle 'a' modifier in ARM inline assembly.
Patch by Richard Pennington.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/AsmPrinter')
-rw-r--r-- | lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp index e9997ad..b3fa88e 100644 --- a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp @@ -739,7 +739,10 @@ bool ARMAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo, switch (ExtraCode[0]) { default: return true; // Unknown modifier. + case 'a': // Don't print "#" before a global var name or constant. case 'c': // Don't print "$" before a global var name or constant. + printOperand(MI, OpNo, "no_hash"); + return false; case 'P': // Print a VFP double precision register. printOperand(MI, OpNo); return false; |