diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 04:41:11 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 04:41:11 +0000 |
commit | 4975db627679716dd078d031f334ad53519eb68a (patch) | |
tree | 12b8bc69a303c2c584fc8ece50db1ce08079fa63 /llvm/lib/VMCore/Verifier.cpp | |
parent | 02dee0a46a390ad3bbad16672bd44c62628ea1ce (diff) | |
download | bcm5719-llvm-4975db627679716dd078d031f334ad53519eb68a.tar.gz bcm5719-llvm-4975db627679716dd078d031f334ad53519eb68a.zip |
Initial update to VMCore to use Twines for string arguments.
- The only meat here is in Value.{h,cpp} the rest is essential 'const
std::string &' -> 'const Twine &'.
llvm-svn: 77048
Diffstat (limited to 'llvm/lib/VMCore/Verifier.cpp')
-rw-r--r-- | llvm/lib/VMCore/Verifier.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/Verifier.cpp b/llvm/lib/VMCore/Verifier.cpp index 4b15e3acb3f..f900dcad2a4 100644 --- a/llvm/lib/VMCore/Verifier.cpp +++ b/llvm/lib/VMCore/Verifier.cpp @@ -304,10 +304,10 @@ namespace { // CheckFailed - A check failed, so print out the condition and the message // that failed. This provides a nice place to put a breakpoint if you want // to see why something is not correct. - void CheckFailed(const std::string &Message, + void CheckFailed(const Twine &Message, const Value *V1 = 0, const Value *V2 = 0, const Value *V3 = 0, const Value *V4 = 0) { - msgs << Message << "\n"; + msgs << Message.str() << "\n"; WriteValue(V1); WriteValue(V2); WriteValue(V3); @@ -315,9 +315,9 @@ namespace { Broken = true; } - void CheckFailed( const std::string& Message, const Value* V1, - const Type* T2, const Value* V3 = 0 ) { - msgs << Message << "\n"; + void CheckFailed(const Twine &Message, const Value* V1, + const Type* T2, const Value* V3 = 0) { + msgs << Message.str() << "\n"; WriteValue(V1); WriteType(T2); WriteValue(V3); |