[cfe-commits] r44845 - in /cfe/trunk: Driver/Targets.cpp include/clang/AST/TargetBuiltins.h
Chris Lattner
sabre at nondot.org
Mon Dec 10 20:36:29 PST 2007
Author: lattner
Date: Mon Dec 10 22:36:28 2007
New Revision: 44845
URL: http://llvm.org/viewvc/llvm-project?rev=44845&view=rev
Log:
properly namespacify.
Modified:
cfe/trunk/Driver/Targets.cpp
cfe/trunk/include/clang/AST/TargetBuiltins.h
Modified: cfe/trunk/Driver/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/Targets.cpp?rev=44845&r1=44844&r2=44845&view=diff
==============================================================================
--- cfe/trunk/Driver/Targets.cpp (original)
+++ cfe/trunk/Driver/Targets.cpp Mon Dec 10 22:36:28 2007
@@ -299,6 +299,7 @@
/// PPC builtin info.
+namespace clang {
namespace PPC {
static const Builtin::Info BuiltinInfo[] = {
@@ -404,7 +405,6 @@
} // End namespace PPC
-
/// X86 builtin info.
namespace X86 {
static const Builtin::Info BuiltinInfo[] = {
@@ -477,6 +477,7 @@
}
} // End namespace X86
+} // end namespace clang.
//===----------------------------------------------------------------------===//
// Specific target implementations.
Modified: cfe/trunk/include/clang/AST/TargetBuiltins.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TargetBuiltins.h?rev=44845&r1=44844&r2=44845&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/TargetBuiltins.h (original)
+++ cfe/trunk/include/clang/AST/TargetBuiltins.h Mon Dec 10 22:36:28 2007
@@ -12,24 +12,26 @@
#include "clang/AST/Builtins.h"
-/// X86 builtins
-namespace X86 {
+namespace clang {
+ /// X86 builtins
+ namespace X86 {
enum {
LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1,
#define BUILTIN(ID, TYPE, ATTRS) BI##ID,
#include "X86Builtins.def"
LastTSBuiltin
};
-}
+ }
-/// PPC builtins
-namespace PPC {
+ /// PPC builtins
+ namespace PPC {
enum {
LastTIBuiltin = clang::Builtin::FirstTSBuiltin-1,
#define BUILTIN(ID, TYPE, ATTRS) BI##ID,
#include "PPCBuiltins.def"
LastTSBuiltin
};
-}
+ }
+} // end namespace clang.
#endif
More information about the cfe-commits
mailing list