aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-19 05:49:37 +0000
committerChris Lattner <sabre@nondot.org>2009-08-19 05:49:37 +0000
commit6c2f9e14fdf14d8c1c687c6bd9918183fa7f8a7f (patch)
tree18396ebe0fb76e50f0d46f9dc21f09ec9d82975f /lib/MC
parent0a324aa53affc2fbadb95be577d22c9bebb1c29e (diff)
downloadexternal_llvm-6c2f9e14fdf14d8c1c687c6bd9918183fa7f8a7f.zip
external_llvm-6c2f9e14fdf14d8c1c687c6bd9918183fa7f8a7f.tar.gz
external_llvm-6c2f9e14fdf14d8c1c687c6bd9918183fa7f8a7f.tar.bz2
eliminate AsmPrinter::SwitchToSection and just have clients
talk to the MCStreamer directly instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79405 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCAsmStreamer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp
index cb36425..89bc5bc 100644
--- a/lib/MC/MCAsmStreamer.cpp
+++ b/lib/MC/MCAsmStreamer.cpp
@@ -97,6 +97,7 @@ static inline MCValue truncateToSize(const MCValue &Value, unsigned Bytes) {
}
void MCAsmStreamer::SwitchSection(const MCSection *Section) {
+ assert(Section && "Cannot switch to a null section!");
if (Section != CurSection) {
CurSection = Section;
Section->PrintSwitchToSection(TAI, OS);