mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
TableGen: don't save a StringRef to a local std::string.
This caused a failure in some Windows builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -603,8 +603,8 @@ void AsmWriterEmitter::EmitGetRegisterName(raw_ostream &O) {
|
|||||||
<< " switch(AltIdx) {\n"
|
<< " switch(AltIdx) {\n"
|
||||||
<< " default: llvm_unreachable(\"Invalid register alt name index!\");\n";
|
<< " default: llvm_unreachable(\"Invalid register alt name index!\");\n";
|
||||||
for (unsigned i = 0, e = AltNameIndices.size(); i < e; ++i) {
|
for (unsigned i = 0, e = AltNameIndices.size(); i < e; ++i) {
|
||||||
StringRef Namespace = AltNameIndices[1]->getValueAsString("Namespace");
|
std::string Namespace = AltNameIndices[1]->getValueAsString("Namespace");
|
||||||
StringRef AltName(AltNameIndices[i]->getName());
|
std::string AltName(AltNameIndices[i]->getName());
|
||||||
O << " case " << Namespace << "::" << AltName
|
O << " case " << Namespace << "::" << AltName
|
||||||
<< ":\n"
|
<< ":\n"
|
||||||
<< " AsmStrs = AsmStrs" << AltName << ";\n"
|
<< " AsmStrs = AsmStrs" << AltName << ";\n"
|
||||||
|
Reference in New Issue
Block a user