summaryrefslogtreecommitdiff
path: root/tools/llvmc2
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-05-06 16:37:33 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-05-06 16:37:33 +0000
commita4db8c070f11dccc96acdf9d84feab91d2ae8897 (patch)
tree5c3900a7f53c7b71d62d457399a8a501f9f59a84 /tools/llvmc2
parente74420ab24c6ecf631ffc5817efed4906ebfbfa3 (diff)
downloadllvm-a4db8c070f11dccc96acdf9d84feab91d2ae8897.tar.gz
llvm-a4db8c070f11dccc96acdf9d84feab91d2ae8897.tar.bz2
llvm-a4db8c070f11dccc96acdf9d84feab91d2ae8897.tar.xz
Cosmetic change: if( -> if (
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc2')
-rw-r--r--tools/llvmc2/CompilationGraph.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/llvmc2/CompilationGraph.cpp b/tools/llvmc2/CompilationGraph.cpp
index 77c5896161..94e323b7f6 100644
--- a/tools/llvmc2/CompilationGraph.cpp
+++ b/tools/llvmc2/CompilationGraph.cpp
@@ -98,7 +98,7 @@ int CompilationGraph::Build (const sys::Path& tempDir) const {
// Get to the head of the toolchain.
const tools_vector_type& TV = getToolsVector(getLanguage(In));
- if(TV.empty())
+ if (TV.empty())
throw std::runtime_error("Tool names vector is empty!");
const Node* N = &getNode(*TV.begin());
@@ -108,7 +108,7 @@ int CompilationGraph::Build (const sys::Path& tempDir) const {
while(!Last) {
const Tool* CurTool = N->ToolPtr.getPtr();
- if(CurTool->IsJoin()) {
+ if (CurTool->IsJoin()) {
JoinList.push_back(In);
JoinTool = CurTool;
break;
@@ -117,7 +117,7 @@ int CompilationGraph::Build (const sys::Path& tempDir) const {
// Is this the last tool?
if (!N->HasChildren() || CurTool->IsLast()) {
// Check if the first tool is also the last
- if(Out.empty())
+ if (Out.empty())
Out.set(In.getBasename());
else
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 (!OutputFilename.empty()) {
Out = sys::Path(OutputFilename);
@@ -177,7 +177,7 @@ namespace llvm {
void CompilationGraph::writeGraph() {
std::ofstream O("CompilationGraph.dot");
- if(O.good()) {
+ if (O.good()) {
llvm::WriteGraph(this, "CompilationGraph");
O.close();
}