This is an archive of the discontinued LLVM Phabricator instance.

Replace string GNU Triples with llvm::Triple in TargetMachine::getTargetTriple(). NFC.
ClosedPublic

Authored by dsanders on Jun 11 2015, 2:16 AM.

Details

Summary

This continues the patch series to eliminate StringRef forms of GNU triples
from the internals of LLVM that began in r239036.

Depends on D10366

Diff Detail

Event Timeline

dsanders updated this revision to Diff 27491.Jun 11 2015, 2:16 AM
dsanders retitled this revision from to Replace string GNU Triples with llvm::Triple in TargetMachine::getTargetTriple(). NFC..
dsanders updated this object.
dsanders edited the test plan for this revision. (Show Details)
dsanders added subscribers: rengolin, Unknown Object (MLST).
rengolin added inline comments.Jun 11 2015, 3:15 AM
lib/CodeGen/LLVMTargetMachine.cpp
250

No copy constructor?

dsanders added inline comments.Jun 11 2015, 3:27 AM
lib/CodeGen/LLVMTargetMachine.cpp
250

It should be:

const Triple &T = getTargetTriple();

I've cleaned this kind of thing up for lib/Target/ in http://reviews.llvm.org/D10382 but it seems I've forgotten lib/CodeGen/ in that patch and I'll need to update it.

rengolin accepted this revision.Jun 11 2015, 4:11 AM
rengolin added a reviewer: rengolin.

Yeah, should be fine. I trust you'll merge all the patches in the right order. :)

LGTM. Thanks!

This revision is now accepted and ready to land.Jun 11 2015, 4:11 AM
dsanders closed this revision.Jun 16 2015, 6:20 AM