aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-04-15 22:00:22 +0000
committerCraig Topper <craig.topper@gmail.com>2012-04-15 22:00:22 +0000
commitfb22ede033f792196643bad0ceafe473366ddf41 (patch)
tree75f7cc4c5af3dff2e56be0eb24e617773c3468e7
parent082d475fc95764fc1b7828a91c31fd4dddd9af8a (diff)
downloadexternal_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.h3
-rw-r--r--include/llvm/MC/MCParser/MCAsmLexer.h3
-rw-r--r--tools/llvm-mc/llvm-mc.cpp1
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"