[llvm] r238178 - [TableGen] Remove unneeded namespace around a function. Just put llvm:: on the definition since it's already declared in a header file.
Craig Topper
craig.topper at gmail.com
Mon May 25 23:48:41 PDT 2015
Author: ctopper
Date: Tue May 26 01:48:41 2015
New Revision: 238178
URL: http://llvm.org/viewvc/llvm-project?rev=238178&view=rev
Log:
[TableGen] Remove unneeded namespace around a function. Just put llvm:: on the definition since it's already declared in a header file.
Modified:
llvm/trunk/lib/TableGen/Main.cpp
Modified: llvm/trunk/lib/TableGen/Main.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/Main.cpp?rev=238178&r1=238177&r2=238178&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/Main.cpp (original)
+++ llvm/trunk/lib/TableGen/Main.cpp Tue May 26 01:48:41 2015
@@ -70,9 +70,7 @@ static int createDependencyFile(const TG
return 0;
}
-namespace llvm {
-
-int TableGenMain(char *argv0, TableGenMainFn *MainFn) {
+int llvm::TableGenMain(char *argv0, TableGenMainFn *MainFn) {
RecordKeeper Records;
// Parse the input file.
@@ -120,5 +118,3 @@ int TableGenMain(char *argv0, TableGenMa
Out.keep();
return 0;
}
-
-}
More information about the llvm-commits
mailing list