Update for LLVM API change.
authorEric Christopher <echristo@gmail.com>
Mon, 26 Jan 2015 19:03:30 +0000 (19:03 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 26 Jan 2015 19:03:30 +0000 (19:03 +0000)
llvm-svn: 227114

clang/lib/CodeGen/BackendUtil.cpp

index 9f2ea93..7023835 100644 (file)
@@ -649,9 +649,8 @@ void clang::EmitBackendOutput(DiagnosticsEngine &Diags,
   // 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 "