mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Cosmetic change: if( -> if (
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50728 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e74420ab24
commit
a4db8c070f
@ -98,7 +98,7 @@ int CompilationGraph::Build (const sys::Path& tempDir) const {
|
|||||||
|
|
||||||
// Get to the head of the toolchain.
|
// Get to the head of the toolchain.
|
||||||
const tools_vector_type& TV = getToolsVector(getLanguage(In));
|
const tools_vector_type& TV = getToolsVector(getLanguage(In));
|
||||||
if(TV.empty())
|
if (TV.empty())
|
||||||
throw std::runtime_error("Tool names vector is empty!");
|
throw std::runtime_error("Tool names vector is empty!");
|
||||||
const Node* N = &getNode(*TV.begin());
|
const Node* N = &getNode(*TV.begin());
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ int CompilationGraph::Build (const sys::Path& tempDir) const {
|
|||||||
while(!Last) {
|
while(!Last) {
|
||||||
const Tool* CurTool = N->ToolPtr.getPtr();
|
const Tool* CurTool = N->ToolPtr.getPtr();
|
||||||
|
|
||||||
if(CurTool->IsJoin()) {
|
if (CurTool->IsJoin()) {
|
||||||
JoinList.push_back(In);
|
JoinList.push_back(In);
|
||||||
JoinTool = CurTool;
|
JoinTool = CurTool;
|
||||||
break;
|
break;
|
||||||
@ -117,7 +117,7 @@ int CompilationGraph::Build (const sys::Path& tempDir) const {
|
|||||||
// Is this the last tool?
|
// Is this the last tool?
|
||||||
if (!N->HasChildren() || CurTool->IsLast()) {
|
if (!N->HasChildren() || CurTool->IsLast()) {
|
||||||
// Check if the first tool is also the last
|
// Check if the first tool is also the last
|
||||||
if(Out.empty())
|
if (Out.empty())
|
||||||
Out.set(In.getBasename());
|
Out.set(In.getBasename());
|
||||||
else
|
else
|
||||||
Out.appendComponent(In.getBasename());
|
Out.appendComponent(In.getBasename());
|
||||||
@ -140,7 +140,7 @@ int CompilationGraph::Build (const sys::Path& tempDir) const {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(JoinTool) {
|
if (JoinTool) {
|
||||||
// If the final output name is empty, set it to "a.out"
|
// If the final output name is empty, set it to "a.out"
|
||||||
if (!OutputFilename.empty()) {
|
if (!OutputFilename.empty()) {
|
||||||
Out = sys::Path(OutputFilename);
|
Out = sys::Path(OutputFilename);
|
||||||
@ -177,7 +177,7 @@ namespace llvm {
|
|||||||
void CompilationGraph::writeGraph() {
|
void CompilationGraph::writeGraph() {
|
||||||
std::ofstream O("CompilationGraph.dot");
|
std::ofstream O("CompilationGraph.dot");
|
||||||
|
|
||||||
if(O.good()) {
|
if (O.good()) {
|
||||||
llvm::WriteGraph(this, "CompilationGraph");
|
llvm::WriteGraph(this, "CompilationGraph");
|
||||||
O.close();
|
O.close();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user