aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2009-07-14 23:21:55 +0000
committerKevin Enderby <enderby@apple.com>2009-07-14 23:21:55 +0000
commit1f049b24c7e520ecfd2291b7d30eb5abc3aee852 (patch)
tree3d0ccca57a54fe10e39a2325b3acc214c58ad77a /lib/MC
parent1f318e00bad8b7499ef14d5732bcbda89243ec89 (diff)
downloadexternal_llvm-1f049b24c7e520ecfd2291b7d30eb5abc3aee852.zip
external_llvm-1f049b24c7e520ecfd2291b7d30eb5abc3aee852.tar.gz
external_llvm-1f049b24c7e520ecfd2291b7d30eb5abc3aee852.tar.bz2
Added llvm-mc support for parsing the .include directive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75711 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCAsmStreamer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp
index ec99b10..2a15783 100644
--- a/lib/MC/MCAsmStreamer.cpp
+++ b/lib/MC/MCAsmStreamer.cpp
@@ -57,6 +57,8 @@ namespace {
virtual void AbortAssembly(const char *AbortReason = NULL);
+ virtual void SwitchInputAssemblyFile(const char *FileName);
+
virtual void EmitBytes(const char *Data, unsigned Length);
virtual void EmitValue(const MCValue &Value, unsigned Size);
@@ -137,6 +139,10 @@ void MCAsmStreamer::AbortAssembly(const char *AbortReason) {
}
+void MCAsmStreamer::SwitchInputAssemblyFile(const char *FileName) {
+ OS << ".include" << ' ' << FileName << '\n';
+}
+
void MCAsmStreamer::EmitAssignment(MCSymbol *Symbol, const MCValue &Value,
bool MakeAbsolute) {
assert(!Symbol->getSection() && "Cannot assign to a label!");