aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-03 15:31:23 +0000
committerChris Lattner <sabre@nondot.org>2003-06-03 15:31:23 +0000
commitff3261ae865e7b9d500b2a6739396dcf8a8af0e0 (patch)
treee7e98730825aaa9f74760fb471dfdd7aa94718ff
parent0c0583a765d217c0340a6f1219d0bad397cc699d (diff)
Add namespace comments for doxygen
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6581 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86.h6
-rw-r--r--lib/Target/X86/X86CodeEmitter.cpp5
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/Target/X86/X86.h b/lib/Target/X86/X86.h
index e798c0c68e..84d6330b11 100644
--- a/lib/Target/X86/X86.h
+++ b/lib/Target/X86/X86.h
@@ -41,9 +41,9 @@ Pass *createX86CodePrinterPass(std::ostream &O);
///
Pass *createEmitX86CodeToMemory();
-// Put symbolic names in a namespace to avoid causing these to clash with all
-// kinds of other things...
-//
+/// X86 namespace - This namespace contains all of the register and opcode enums
+/// used by the X86 backend.
+///
namespace X86 {
// Defines a large number of symbolic names for X86 registers. This defines a
// mapping from register name to register number.
diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp
index 3b7fb4c148..f41300daea 100644
--- a/lib/Target/X86/X86CodeEmitter.cpp
+++ b/lib/Target/X86/X86CodeEmitter.cpp
@@ -264,8 +264,9 @@ void Emitter::emitGlobalAddressForPtr(GlobalValue *GV) {
-
-namespace N86 { // Native X86 Register numbers...
+/// N86 namespace - Native X86 Register numbers... used by X86 backend.
+///
+namespace N86 {
enum {
EAX = 0, ECX = 1, EDX = 2, EBX = 3, ESP = 4, EBP = 5, ESI = 6, EDI = 7
};