diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2012-09-18 16:08:49 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2012-09-18 16:08:49 +0000 |
commit | 536a88ad5bf160232205192a7ce72e50bfadbded (patch) | |
tree | 34414801f32472b401a3f510f19b0689ded08fb1 /lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp | |
parent | ad83d08ed04c541a2fbc8262a45077e565bb20e3 (diff) | |
download | external_llvm-536a88ad5bf160232205192a7ce72e50bfadbded.zip external_llvm-536a88ad5bf160232205192a7ce72e50bfadbded.tar.gz external_llvm-536a88ad5bf160232205192a7ce72e50bfadbded.tar.bz2 |
When creating MCAsmBackend pass the CPU string as well. In X86AsmBackend
store this and use it to not emit long nops when the CPU is geode which
doesnt support them.
Fixes PR11212.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164132 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp')
-rw-r--r-- | lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp b/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp index ac6ce64..68c47ac 100644 --- a/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp +++ b/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp @@ -674,7 +674,7 @@ void DarwinARMAsmBackend::applyFixup(const MCFixup &Fixup, char *Data, } // end anonymous namespace -MCAsmBackend *llvm::createARMAsmBackend(const Target &T, StringRef TT) { +MCAsmBackend *llvm::createARMAsmBackend(const Target &T, StringRef TT, StringRef CPU) { Triple TheTriple(TT); if (TheTriple.isOSDarwin()) { |