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/X86/MCTargetDesc/X86MCTargetDesc.h | |
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/X86/MCTargetDesc/X86MCTargetDesc.h')
-rw-r--r-- | lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h b/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h index 4650069..4b0cace 100644 --- a/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h +++ b/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h @@ -80,8 +80,8 @@ MCCodeEmitter *createX86MCCodeEmitter(const MCInstrInfo &MCII, const MCSubtargetInfo &STI, MCContext &Ctx); -MCAsmBackend *createX86_32AsmBackend(const Target &T, StringRef TT); -MCAsmBackend *createX86_64AsmBackend(const Target &T, StringRef TT); +MCAsmBackend *createX86_32AsmBackend(const Target &T, StringRef TT, StringRef CPU); +MCAsmBackend *createX86_64AsmBackend(const Target &T, StringRef TT, StringRef CPU); /// createX86MachObjectWriter - Construct an X86 Mach-O object writer. MCObjectWriter *createX86MachObjectWriter(raw_ostream &OS, |