Driver: Push triple objects around instead of going to std::string all the time.

No functionality change.

llvm-svn: 185261
This commit is contained in:
Benjamin Kramer 2013-06-29 16:37:14 +00:00
parent fe11e287b4
commit b1276b4cff
3 changed files with 277 additions and 309 deletions

View File

@ -86,7 +86,7 @@ protected:
unsigned ComplexLongDoubleUsesFP2Ret : 1;
// TargetInfo Constructor. Default initializes all fields.
TargetInfo(const std::string &T);
TargetInfo(const llvm::Triple &T);
public:
/// \brief Construct a target for the given options.

View File

@ -24,8 +24,7 @@ using namespace clang;
static const LangAS::Map DefaultAddrSpaceMap = { 0 };
// TargetInfo Constructor.
TargetInfo::TargetInfo(const std::string &T) : TargetOpts(), Triple(T)
{
TargetInfo::TargetInfo(const llvm::Triple &T) : TargetOpts(), Triple(T) {
// Set defaults. Defaults are set for a 32-bit RISC platform, like PPC or
// SPARC. These should be overridden by concrete targets as needed.
BigEndian = true;

File diff suppressed because it is too large Load Diff