diff options
-rw-r--r-- | docs/ReleaseNotes.html | 5 | ||||
-rw-r--r-- | lib/Support/Triple.cpp | 16 |
2 files changed, 5 insertions, 16 deletions
diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html index f9f492c263..b937f7d871 100644 --- a/docs/ReleaseNotes.html +++ b/docs/ReleaseNotes.html @@ -348,6 +348,11 @@ expose new optimization opportunities:</p> SMDiagnostic takes different parameters now. //FIXME: how to upgrade? </li> <li> + The constructor for the Triple class no longer tries to understand odd triple + specifications. Frontends should ensure that they only pass valid triples to + LLVM. The Triple::normalize utility method has been added to help front-ends + deal with funky triples. +<li> Some APIs got renamed: <ul> <li>llvm_report_error -> report_fatal_error</li> diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 7806aec16c..3a95b65e69 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -323,22 +323,6 @@ void Triple::Parse() const { Vendor = ParseVendor(getVendorName()); OS = ParseOS(getOSName()); - // Handle some exceptional cases where the OS / environment components are - // stuck into the vendor field. - // TODO: Remove this logic and have places that need it use 'normalize'. - if (StringRef(getTriple()).count('-') == 1) { - StringRef VendorName = getVendorName(); - - if (VendorName.startswith("mingw32")) { // 'i386-mingw32', etc. - Vendor = PC; - OS = MinGW32; - return; - } - - // arm-elf is another example, but we don't currently parse anything about - // the environment. - } - assert(isInitialized() && "Failed to initialize!"); } |