r227114 - Update for LLVM API change.

Eric Christopher echristo at gmail.com
Mon Jan 26 11:03:30 PST 2015


Author: echristo
Date: Mon Jan 26 13:03:30 2015
New Revision: 227114

URL: http://llvm.org/viewvc/llvm-project?rev=227114&view=rev
Log:
Update for LLVM API change.

Modified:
    cfe/trunk/lib/CodeGen/BackendUtil.cpp

Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/BackendUtil.cpp?rev=227114&r1=227113&r2=227114&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Mon Jan 26 13:03:30 2015
@@ -649,9 +649,8 @@ void clang::EmitBackendOutput(Diagnostic
   // If an optional clang TargetInfo description string was passed in, use it to
   // verify the LLVM TargetMachine's DataLayout.
   if (AsmHelper.TM && !TDesc.empty()) {
-    std::string DLDesc = AsmHelper.TM->getSubtargetImpl()
-                             ->getDataLayout()
-                             ->getStringRepresentation();
+    std::string DLDesc =
+        AsmHelper.TM->getDataLayout()->getStringRepresentation();
     if (DLDesc != TDesc) {
       unsigned DiagID = Diags.getCustomDiagID(
           DiagnosticsEngine::Error, "backend data layout '%0' does not match "





More information about the cfe-commits mailing list