mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[OptDiag] Remove non-printable chars from function name
The r283656 did this in the remark arguments. We also need to do this in the main function attribute as that is written to YAML as well. llvm-svn: 286482
This commit is contained in:
parent
9b52058816
commit
f8a50d283f
@ -80,7 +80,8 @@ template <> struct MappingTraits<DiagnosticInfoOptimizationBase *> {
|
||||
|
||||
// These are read-only for now.
|
||||
DebugLoc DL = OptDiag->getDebugLoc();
|
||||
StringRef FN = OptDiag->getFunction().getName();
|
||||
StringRef FN = GlobalValue::getRealLinkageName(
|
||||
OptDiag->getFunction().getName());
|
||||
|
||||
StringRef PassName(OptDiag->PassName);
|
||||
io.mapRequired("Pass", PassName);
|
||||
|
@ -49,7 +49,7 @@ target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-apple-macosx10.11.0"
|
||||
|
||||
; Function Attrs: nounwind ssp uwtable
|
||||
define i32 @baz() !dbg !7 !prof !14 {
|
||||
define i32 @"\01baz"() !dbg !7 !prof !14 {
|
||||
entry:
|
||||
%call = call i32 (...) @foo(), !dbg !9
|
||||
%call1 = call i32 (...) @"\01bar"(), !dbg !10
|
||||
|
Loading…
Reference in New Issue
Block a user