diff options
| author | Adam Nemet <anemet@apple.com> | 2016-10-08 04:47:20 +0000 |
|---|---|---|
| committer | Adam Nemet <anemet@apple.com> | 2016-10-08 04:47:20 +0000 |
| commit | ee5cf031ce97d8ea183884c19b7305276152cb1e (patch) | |
| tree | 7146725e0554fafc9538723a9d4564415dd217fd /llvm/lib | |
| parent | f82bda0a7ac91c18051f346b719c7cf6faadbc00 (diff) | |
| download | bcm5719-llvm-ee5cf031ce97d8ea183884c19b7305276152cb1e.tar.gz bcm5719-llvm-ee5cf031ce97d8ea183884c19b7305276152cb1e.zip | |
[OptRemarks] Remove non-printable chars from function name
Value names may be prefixed with a binary '1' to indicate that the
backend should not modify the symbols due to any platform naming
convention.
This should not show up in the YAML opt record file because it breaks
the YAML parser.
llvm-svn: 283656
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/IR/DiagnosticInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/DiagnosticInfo.cpp b/llvm/lib/IR/DiagnosticInfo.cpp index e9187a9ce63..ae10a6dcae6 100644 --- a/llvm/lib/IR/DiagnosticInfo.cpp +++ b/llvm/lib/IR/DiagnosticInfo.cpp @@ -170,6 +170,8 @@ const std::string DiagnosticInfoWithDebugLocBase::getLocationStr() const { getLocation(&Filename, &Line, &Column); return (Filename + ":" + Twine(Line) + ":" + Twine(Column)).str(); } +DiagnosticInfoOptimizationBase::Argument::Argument(StringRef Key, Value *V) + : Key(Key), Val(GlobalValue::getRealLinkageName(V->getName())) {} DiagnosticInfoOptimizationBase::Argument::Argument(StringRef Key, int N) : Key(Key), Val(itostr(N)) {} |

