mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Simplify / normalize some uses of Value::getName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76553 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4cf95d75c6
commit
fbee579ed4
@ -568,7 +568,7 @@ void SelectionDAGISel::CodeGenAndEmitDAG() {
|
|||||||
if (ViewDAGCombine1 || ViewLegalizeTypesDAGs || ViewLegalizeDAGs ||
|
if (ViewDAGCombine1 || ViewLegalizeTypesDAGs || ViewLegalizeDAGs ||
|
||||||
ViewDAGCombine2 || ViewDAGCombineLT || ViewISelDAGs || ViewSchedDAGs ||
|
ViewDAGCombine2 || ViewDAGCombineLT || ViewISelDAGs || ViewSchedDAGs ||
|
||||||
ViewSUnitDAGs)
|
ViewSUnitDAGs)
|
||||||
BlockName = CurDAG->getMachineFunction().getFunction()->getName() + ':' +
|
BlockName = CurDAG->getMachineFunction().getFunction()->getName() + ":" +
|
||||||
BB->getBasicBlock()->getName();
|
BB->getBasicBlock()->getName();
|
||||||
|
|
||||||
DOUT << "Initial selection DAG:\n";
|
DOUT << "Initial selection DAG:\n";
|
||||||
|
@ -993,7 +993,7 @@ void ExecutionEngine::emitGlobals() {
|
|||||||
// External variable reference. Try to use the dynamic loader to
|
// External variable reference. Try to use the dynamic loader to
|
||||||
// get a pointer to it.
|
// get a pointer to it.
|
||||||
if (void *SymAddr =
|
if (void *SymAddr =
|
||||||
sys::DynamicLibrary::SearchForAddressOfSymbol(I->getName().c_str()))
|
sys::DynamicLibrary::SearchForAddressOfSymbol(I->getName()))
|
||||||
addGlobalMapping(I, SymAddr);
|
addGlobalMapping(I, SymAddr);
|
||||||
else {
|
else {
|
||||||
llvm_report_error("Could not resolve external global address: "
|
llvm_report_error("Could not resolve external global address: "
|
||||||
|
@ -686,7 +686,7 @@ void *JIT::getOrEmitGlobalVariable(const GlobalVariable *GV) {
|
|||||||
if (GV->getName() == "__dso_handle")
|
if (GV->getName() == "__dso_handle")
|
||||||
return (void*)&__dso_handle;
|
return (void*)&__dso_handle;
|
||||||
#endif
|
#endif
|
||||||
Ptr = sys::DynamicLibrary::SearchForAddressOfSymbol(GV->getName().c_str());
|
Ptr = sys::DynamicLibrary::SearchForAddressOfSymbol(GV->getName());
|
||||||
if (Ptr == 0 && !areDlsymStubsEnabled()) {
|
if (Ptr == 0 && !areDlsymStubsEnabled()) {
|
||||||
llvm_report_error("Could not resolve external global address: "
|
llvm_report_error("Could not resolve external global address: "
|
||||||
+GV->getName());
|
+GV->getName());
|
||||||
|
@ -1432,7 +1432,7 @@ void JIT::updateDlsymStubTable() {
|
|||||||
SmallVector<unsigned, 8> Offsets;
|
SmallVector<unsigned, 8> Offsets;
|
||||||
for (unsigned i = 0; i != GVs.size(); ++i) {
|
for (unsigned i = 0; i != GVs.size(); ++i) {
|
||||||
Offsets.push_back(offset);
|
Offsets.push_back(offset);
|
||||||
offset += GVs[i]->getName().length() + 1;
|
offset += GVs[i]->getName().size() + 1;
|
||||||
}
|
}
|
||||||
for (StringMapConstIterator<void*> i = ExtFns.begin(), e = ExtFns.end();
|
for (StringMapConstIterator<void*> i = ExtFns.begin(), e = ExtFns.end();
|
||||||
i != e; ++i) {
|
i != e; ++i) {
|
||||||
|
@ -185,7 +185,7 @@ bool ProfileInfoPrinterPass::runOnModule(Module &M) {
|
|||||||
std::cout << std::setw(3) << i+1 << ". "
|
std::cout << std::setw(3) << i+1 << ". "
|
||||||
<< std::setw(5) << FunctionCounts[i].second << "/"
|
<< std::setw(5) << FunctionCounts[i].second << "/"
|
||||||
<< TotalExecutions << " "
|
<< TotalExecutions << " "
|
||||||
<< FunctionCounts[i].first->getName().c_str() << "\n";
|
<< FunctionCounts[i].first->getName() << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::set<Function*> FunctionsToPrint;
|
std::set<Function*> FunctionsToPrint;
|
||||||
@ -219,8 +219,8 @@ bool ProfileInfoPrinterPass::runOnModule(Module &M) {
|
|||||||
<< Counts[i].second/(double)TotalExecutions*100 << "% "
|
<< Counts[i].second/(double)TotalExecutions*100 << "% "
|
||||||
<< std::setw(5) << Counts[i].second << "/"
|
<< std::setw(5) << Counts[i].second << "/"
|
||||||
<< TotalExecutions << "\t"
|
<< TotalExecutions << "\t"
|
||||||
<< F->getName().c_str() << "() - "
|
<< F->getName() << "() - "
|
||||||
<< Counts[i].first->getName().c_str() << "\n";
|
<< Counts[i].first->getName() << "\n";
|
||||||
FunctionsToPrint.insert(F);
|
FunctionsToPrint.insert(F);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user