From 81e400092f55c2eba157172bfc0dd0df8317638d Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 27 Aug 2009 00:38:04 +0000 Subject: [PATCH] Try to make MSVC just a little happier. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80187 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCAssembler.h | 4 ++-- lib/MC/MCAssembler.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h index daa3ffe54da..6f9149b40c5 100644 --- a/include/llvm/MC/MCAssembler.h +++ b/include/llvm/MC/MCAssembler.h @@ -287,7 +287,7 @@ public: private: iplist Fragments; - const MCSection &Section; + const MCSection *Section; /// Alignment - The maximum alignment seen in this section. unsigned Alignment; @@ -321,7 +321,7 @@ public: MCSectionData(); MCSectionData(const MCSection &Section, MCAssembler *A = 0); - const MCSection &getSection() const { return Section; } + const MCSection &getSection() const { return *Section; } unsigned getAlignment() const { return Alignment; } void setAlignment(unsigned Value) { Alignment = Value; } diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp index 9388df8df61..5fd67b25b2a 100644 --- a/lib/MC/MCAssembler.cpp +++ b/lib/MC/MCAssembler.cpp @@ -829,10 +829,10 @@ uint64_t MCFragment::getAddress() const { /* *** */ -MCSectionData::MCSectionData() : Section(*(MCSection*)0) {} +MCSectionData::MCSectionData() : Section(0) {} MCSectionData::MCSectionData(const MCSection &_Section, MCAssembler *A) - : Section(_Section), + : Section(&_Section), Alignment(1), Address(~UINT64_C(0)), Size(~UINT64_C(0)),