mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Don't create a whole new string just to copy the elements into it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52785 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3987f8e1ac
commit
8342cfff9a
@ -231,11 +231,9 @@ public:
|
||||
}
|
||||
virtual void Apply(std::string &Field) {
|
||||
Constant *C = CI->getOperand(I++);
|
||||
std::string S;
|
||||
if (GetConstantStringInfo(C, S))
|
||||
Field = S;
|
||||
else
|
||||
Field = "";
|
||||
// Fills in the string if it succeeds
|
||||
if (!GetConstantStringInfo(C, Field))
|
||||
Field.clear();
|
||||
}
|
||||
virtual void Apply(DebugInfoDesc *&Field) {
|
||||
Constant *C = CI->getOperand(I++);
|
||||
|
Loading…
Reference in New Issue
Block a user