diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-04-15 22:00:22 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-04-15 22:00:22 +0000 |
commit | fb22ede033f792196643bad0ceafe473366ddf41 (patch) | |
tree | 75f7cc4c5af3dff2e56be0eb24e617773c3468e7 | |
parent | 082d475fc95764fc1b7828a91c31fd4dddd9af8a (diff) | |
download | external_llvm-fb22ede033f792196643bad0ceafe473366ddf41.zip external_llvm-fb22ede033f792196643bad0ceafe473366ddf41.tar.gz external_llvm-fb22ede033f792196643bad0ceafe473366ddf41.tar.bz2 |
Make member variables of AsmToken private. Remove unnecessary forward declarations. Remove an unnecessary include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154775 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/MC/MCParser/AsmLexer.h | 3 | ||||
-rw-r--r-- | include/llvm/MC/MCParser/MCAsmLexer.h | 3 | ||||
-rw-r--r-- | tools/llvm-mc/llvm-mc.cpp | 1 |
3 files changed, 2 insertions, 5 deletions
diff --git a/include/llvm/MC/MCParser/AsmLexer.h b/include/llvm/MC/MCParser/AsmLexer.h index dcecfb6..9a8735f 100644 --- a/include/llvm/MC/MCParser/AsmLexer.h +++ b/include/llvm/MC/MCParser/AsmLexer.h @@ -16,14 +16,11 @@ #include "llvm/ADT/StringRef.h" #include "llvm/MC/MCParser/MCAsmLexer.h" -#include "llvm/MC/MCAsmInfo.h" #include "llvm/Support/DataTypes.h" #include <string> -#include <cassert> namespace llvm { class MemoryBuffer; -class SMLoc; class MCAsmInfo; /// AsmLexer - Lexer class for assembly files. diff --git a/include/llvm/MC/MCParser/MCAsmLexer.h b/include/llvm/MC/MCParser/MCAsmLexer.h index ac04483..5e29ad4 100644 --- a/include/llvm/MC/MCParser/MCAsmLexer.h +++ b/include/llvm/MC/MCParser/MCAsmLexer.h @@ -15,8 +15,6 @@ #include "llvm/Support/SMLoc.h" namespace llvm { -class MCAsmLexer; -class MCInst; /// AsmToken - Target independent representation for an assembler token. class AsmToken { @@ -53,6 +51,7 @@ public: Greater, GreaterEqual, GreaterGreater, At }; +private: TokenKind Kind; /// A reference to the entire token contents; this is always a pointer into diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp index d882e01..89d72b2 100644 --- a/tools/llvm-mc/llvm-mc.cpp +++ b/tools/llvm-mc/llvm-mc.cpp @@ -15,6 +15,7 @@ #include "llvm/MC/MCParser/AsmLexer.h" #include "llvm/MC/MCParser/MCAsmLexer.h" #include "llvm/MC/MCAsmBackend.h" +#include "llvm/MC/MCAsmInfo.h" #include "llvm/MC/MCContext.h" #include "llvm/MC/MCCodeEmitter.h" #include "llvm/MC/MCInstPrinter.h" |