diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-06-10 12:11:26 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-06-10 12:11:26 +0000 |
commit | a73f1fdb196758c93434e783c627e724b6d30f9a (patch) | |
tree | 835c633abd294f03b00a1b7df7594082be39924f /llvm/lib/Target/ARM/ARMTargetMachine.cpp | |
parent | 70e9f5fcb3f757a5e4f6f712cce8ef72d9f61003 (diff) | |
download | llvm-a73f1fdb196758c93434e783c627e724b6d30f9a.zip llvm-a73f1fdb196758c93434e783c627e724b6d30f9a.tar.gz llvm-a73f1fdb196758c93434e783c627e724b6d30f9a.tar.bz2 |
Replace string GNU Triples with llvm::Triple in MCSubtargetInfo and create*MCSubtargetInfo(). NFC.
Summary:
This continues the patch series to eliminate StringRef forms of GNU triples
from the internals of LLVM that began in r239036.
Reviewers: rafael
Reviewed By: rafael
Subscribers: rafael, ted, jfb, llvm-commits, rengolin, jholewinski
Differential Revision: http://reviews.llvm.org/D10311
llvm-svn: 239467
Diffstat (limited to 'llvm/lib/Target/ARM/ARMTargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMTargetMachine.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetMachine.cpp b/llvm/lib/Target/ARM/ARMTargetMachine.cpp index 0aceaed..04d2b53 100644 --- a/llvm/lib/Target/ARM/ARMTargetMachine.cpp +++ b/llvm/lib/Target/ARM/ARMTargetMachine.cpp @@ -180,7 +180,7 @@ ARMBaseTargetMachine::ARMBaseTargetMachine(const Target &T, StringRef TT, CPU, FS, Options, RM, CM, OL), TargetABI(computeTargetABI(Triple(TT), CPU, Options)), TLOF(createTLOF(Triple(getTargetTriple()))), - Subtarget(TT, CPU, FS, *this, isLittle), isLittle(isLittle) { + Subtarget(Triple(TT), CPU, FS, *this, isLittle), isLittle(isLittle) { // Default to triple-appropriate float ABI if (Options.FloatABIType == FloatABI::Default) @@ -221,7 +221,8 @@ ARMBaseTargetMachine::getSubtargetImpl(const Function &F) const { // creation will depend on the TM and the code generation flags on the // function that reside in TargetOptions. resetTargetOptions(F); - I = llvm::make_unique<ARMSubtarget>(TargetTriple, CPU, FS, *this, isLittle); + I = llvm::make_unique<ARMSubtarget>(Triple(TargetTriple), CPU, FS, *this, + isLittle); } return I.get(); } |