aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCSymbol.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/MC/MCSymbol.h')
-rw-r--r--include/llvm/MC/MCSymbol.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/llvm/MC/MCSymbol.h b/include/llvm/MC/MCSymbol.h
new file mode 100644
index 0000000..66215b1
--- /dev/null
+++ b/include/llvm/MC/MCSymbol.h
@@ -0,0 +1,30 @@
+//===- MCSymbol.h - Machine Code Symbols ------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_MC_MCSYMBOL_H
+#define LLVM_MC_MCSYMBOL_H
+
+#include <string>
+
+namespace llvm {
+ class MCAtom;
+
+ class MCSymbol {
+ MCAtom *Atom;
+ std::string Name;
+ unsigned IsTemporary : 1;
+
+ public:
+ MCSymbol(MCAtom *_Atom, const char *_Name, bool _IsTemporary)
+ : Atom(_Atom), Name(_Name), IsTemporary(_IsTemporary) {}
+ };
+
+} // end namespace llvm
+
+#endif