mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-23 17:28:54 +00:00
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 &'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77048 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -34,8 +34,8 @@ using namespace llvm;
|
||||
|
||||
// Error - Simple wrapper function to conditionally assign to E and return true.
|
||||
// This just makes error return conditions a little bit simpler...
|
||||
static inline bool Error(std::string *E, const std::string &Message) {
|
||||
if (E) *E = Message;
|
||||
static inline bool Error(std::string *E, const Twine &Message) {
|
||||
if (E) *E = Message.str();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user