1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Remove named Twine.

While technically correct, we generally disallow any instance of named
Twines due to their subtlety.

llvm-svn: 204016
This commit is contained in:
David Blaikie 2014-03-16 01:36:18 +00:00
parent 0ca2e11cf6
commit 60ddd2b93c

View File

@ -972,10 +972,8 @@ unsigned SampleFunctionProfile::getFunctionLoc(Function &F) {
}
}
StringRef FnName = F.getName();
Twine Msg = "No debug information found in function " + FnName;
DiagnosticInfoSampleProfile Diag(Msg);
F.getContext().diagnose(Diag);
F.getContext().diagnose(DiagnosticInfoSampleProfile(
"No debug information found in function " + F.getName()));
return 0;
}