[llvm] r284557 - [asan] Replace std::to_string with llvm::to_string
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 18 17:16:56 PDT 2016
Author: vitalybuka
Date: Tue Oct 18 19:16:56 2016
New Revision: 284557
URL: http://llvm.org/viewvc/llvm-project?rev=284557&view=rev
Log:
[asan] Replace std::to_string with llvm::to_string
Modified:
llvm/trunk/lib/Transforms/Utils/ASanStackFrameLayout.cpp
Modified: llvm/trunk/lib/Transforms/Utils/ASanStackFrameLayout.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/ASanStackFrameLayout.cpp?rev=284557&r1=284556&r2=284557&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/ASanStackFrameLayout.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/ASanStackFrameLayout.cpp Tue Oct 18 19:16:56 2016
@@ -14,6 +14,7 @@
#include "llvm/ADT/SmallString.h"
#include "llvm/IR/DebugInfo.h"
#include "llvm/Support/MathExtras.h"
+#include "llvm/Support/ScopedPrinter.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
@@ -101,7 +102,7 @@ SmallString<64> ComputeASanStackFrameDes
std::string Name = Var.Name;
if (Var.Line) {
Name += ":";
- Name += std::to_string(Var.Line);
+ Name += to_string(Var.Line);
}
StackDescription << " " << Var.Offset << " " << Var.Size << " "
<< Name.size() << " " << Name;
More information about the llvm-commits
mailing list