mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
Revert "Introduce a string_ostream string builder facilty"
Temporarily back out commits r211749, r211752 and r211754. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211814 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -316,9 +316,11 @@ namespace {
|
||||
}
|
||||
ReturnBlock = new GCOVBlock(i++, os);
|
||||
|
||||
string_ostream FnNameLine;
|
||||
FnNameLine << getFunctionName(SP) << SP.getLineNumber();
|
||||
FuncChecksum = hash_value(FnNameLine.str());
|
||||
std::string FunctionNameAndLine;
|
||||
raw_string_ostream FNLOS(FunctionNameAndLine);
|
||||
FNLOS << getFunctionName(SP) << SP.getLineNumber();
|
||||
FNLOS.flush();
|
||||
FuncChecksum = hash_value(FunctionNameAndLine);
|
||||
}
|
||||
|
||||
~GCOVFunction() {
|
||||
@@ -335,14 +337,15 @@ namespace {
|
||||
}
|
||||
|
||||
std::string getEdgeDestinations() {
|
||||
string_ostream EdgeDestinations;
|
||||
std::string EdgeDestinations;
|
||||
raw_string_ostream EDOS(EdgeDestinations);
|
||||
Function *F = Blocks.begin()->first->getParent();
|
||||
for (Function::iterator I = F->begin(), E = F->end(); I != E; ++I) {
|
||||
GCOVBlock &Block = *Blocks[I];
|
||||
for (int i = 0, e = Block.OutEdges.size(); i != e; ++i)
|
||||
EdgeDestinations << Block.OutEdges[i]->Number;
|
||||
EDOS << Block.OutEdges[i]->Number;
|
||||
}
|
||||
return EdgeDestinations.str();
|
||||
return EdgeDestinations;
|
||||
}
|
||||
|
||||
uint32_t getFuncChecksum() {
|
||||
|
||||
Reference in New Issue
Block a user