summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-24 17:04:05 +0000
committerChris Lattner <sabre@nondot.org>2006-05-24 17:04:05 +0000
commitaa2372562e39758d0b8fca392fd636fe55b23cc9 (patch)
treefea9f96191ae654bc163e553eea13431887046ca /llvm/tools
parent5114596467e0b7024b549c27590631337914d6b0 (diff)
downloadbcm5719-llvm-aa2372562e39758d0b8fca392fd636fe55b23cc9.tar.gz
bcm5719-llvm-aa2372562e39758d0b8fca392fd636fe55b23cc9.zip
Patches to make the LLVM sources more -pedantic clean. Patch provided
by Anton Korobeynikov! This is a step towards closing PR786. llvm-svn: 28447
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/analyze/GraphPrinters.cpp2
-rw-r--r--llvm/tools/bugpoint/ListReducer.h2
-rw-r--r--llvm/tools/llvm-ar/llvm-ar.cpp2
-rw-r--r--llvm/tools/llvm-nm/llvm-nm.cpp2
-rw-r--r--llvm/tools/llvmc/CompilerDriver.h4
-rw-r--r--llvm/tools/llvmc/ConfigLexer.h2
-rw-r--r--llvm/tools/llvmc/ConfigLexer.l2
-rw-r--r--llvm/tools/llvmc/ConfigLexer.l.cvs2
8 files changed, 9 insertions, 9 deletions
diff --git a/llvm/tools/analyze/GraphPrinters.cpp b/llvm/tools/analyze/GraphPrinters.cpp
index 6f2ca5dd816..8826cd2a777 100644
--- a/llvm/tools/analyze/GraphPrinters.cpp
+++ b/llvm/tools/analyze/GraphPrinters.cpp
@@ -74,4 +74,4 @@ namespace {
RegisterAnalysis<CallGraphPrinter> P2("print-callgraph",
"Print Call Graph to 'dot' file");
-};
+}
diff --git a/llvm/tools/bugpoint/ListReducer.h b/llvm/tools/bugpoint/ListReducer.h
index 484b3b57934..9bb93b5b83c 100644
--- a/llvm/tools/bugpoint/ListReducer.h
+++ b/llvm/tools/bugpoint/ListReducer.h
@@ -27,7 +27,7 @@ struct ListReducer {
enum TestResult {
NoFailure, // No failure of the predicate was detected
KeepSuffix, // The suffix alone satisfies the predicate
- KeepPrefix, // The prefix alone satisfies the predicate
+ KeepPrefix // The prefix alone satisfies the predicate
};
virtual ~ListReducer() {}
diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp
index 00dcc39e9f1..fdcc9e6404f 100644
--- a/llvm/tools/llvm-ar/llvm-ar.cpp
+++ b/llvm/tools/llvm-ar/llvm-ar.cpp
@@ -80,7 +80,7 @@ enum ArchiveOperation {
QuickAppend, ///< Quickly append to end of archive
ReplaceOrInsert, ///< Replace or Insert members
DisplayTable, ///< Display the table of contents
- Extract, ///< Extract files back to file system
+ Extract ///< Extract files back to file system
};
// Modifiers to follow operation to vary behavior
diff --git a/llvm/tools/llvm-nm/llvm-nm.cpp b/llvm/tools/llvm-nm/llvm-nm.cpp
index 604e30a3d53..dae8f95f85e 100644
--- a/llvm/tools/llvm-nm/llvm-nm.cpp
+++ b/llvm/tools/llvm-nm/llvm-nm.cpp
@@ -63,7 +63,7 @@ namespace {
bool MultipleFiles = false;
std::string ToolName;
-};
+}
char TypeCharForSymbol (GlobalValue &GV) {
if (GV.isExternal ()) return 'U';
diff --git a/llvm/tools/llvmc/CompilerDriver.h b/llvm/tools/llvmc/CompilerDriver.h
index 1100e3e46f8..3ff3e603241 100644
--- a/llvm/tools/llvmc/CompilerDriver.h
+++ b/llvm/tools/llvmc/CompilerDriver.h
@@ -65,7 +65,7 @@ namespace llvm {
PREPROCESSES_FLAG = 0x0002, ///< Does this action preprocess?
TRANSLATES_FLAG = 0x0004, ///< Does this action translate?
OUTPUT_IS_ASM_FLAG = 0x0008, ///< Action produces .ll files?
- FLAGS_MASK = 0x000F, ///< Union of all flags
+ FLAGS_MASK = 0x000F ///< Union of all flags
};
/// This type is the input list to the CompilerDriver. It provides
@@ -131,7 +131,7 @@ namespace llvm {
EMIT_RAW_FLAG = 0x0080, ///< Emit raw, unoptimized bytecode
KEEP_TEMPS_FLAG = 0x0100, ///< Don't delete temporary files
STRIP_OUTPUT_FLAG = 0x0200, ///< Strip symbols from linked output
- DRIVER_FLAGS_MASK = 0x03FF, ///< Union of the above flags
+ DRIVER_FLAGS_MASK = 0x03FF ///< Union of the above flags
};
/// @}
diff --git a/llvm/tools/llvmc/ConfigLexer.h b/llvm/tools/llvmc/ConfigLexer.h
index 3e87fc1a58a..2d5c64e8652 100644
--- a/llvm/tools/llvmc/ConfigLexer.h
+++ b/llvm/tools/llvmc/ConfigLexer.h
@@ -102,7 +102,7 @@ enum ConfigLexerTokens {
TRUETOK, ///< A boolean true value (true/yes/on)
VERBOSE_SUBST, ///< The substitution item %verbose%
VERSION_TOK, ///< The name "version" (and variants)
- WOPTS_SUBST, ///< The %WOpts% substitution
+ WOPTS_SUBST ///< The %WOpts% substitution
};
extern ConfigLexerTokens Configlex();
diff --git a/llvm/tools/llvmc/ConfigLexer.l b/llvm/tools/llvmc/ConfigLexer.l
index ca21f4f64d2..34b9a17de18 100644
--- a/llvm/tools/llvmc/ConfigLexer.l
+++ b/llvm/tools/llvmc/ConfigLexer.l
@@ -64,7 +64,7 @@ handleSubstitution(llvm::ConfigLexerTokens token) {
}
YY_FATAL_ERROR("Substitition tokens not allowed in names" );
return ERRORTOK;
-};
+}
inline llvm::ConfigLexerTokens handleValueContext(llvm::ConfigLexerTokens token) {
ConfigLexerState.StringVal = yytext;
diff --git a/llvm/tools/llvmc/ConfigLexer.l.cvs b/llvm/tools/llvmc/ConfigLexer.l.cvs
index ca21f4f64d2..34b9a17de18 100644
--- a/llvm/tools/llvmc/ConfigLexer.l.cvs
+++ b/llvm/tools/llvmc/ConfigLexer.l.cvs
@@ -64,7 +64,7 @@ handleSubstitution(llvm::ConfigLexerTokens token) {
}
YY_FATAL_ERROR("Substitition tokens not allowed in names" );
return ERRORTOK;
-};
+}
inline llvm::ConfigLexerTokens handleValueContext(llvm::ConfigLexerTokens token) {
ConfigLexerState.StringVal = yytext;
OpenPOWER on IntegriCloud