Update for LLVM API change.

llvm-svn: 227114
This commit is contained in:
Eric Christopher 2015-01-26 19:03:30 +00:00
parent 8b7706517c
commit 611dfed99f
1 changed files with 2 additions and 3 deletions

View 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 "