diff options
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCAsmInfo.cpp | 3 | ||||
-rw-r--r-- | lib/MC/MCAsmInfoCOFF.cpp | 2 | ||||
-rw-r--r-- | lib/MC/MCAsmInfoDarwin.cpp | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/lib/MC/MCAsmInfo.cpp b/lib/MC/MCAsmInfo.cpp index cc03614..c15d614 100644 --- a/lib/MC/MCAsmInfo.cpp +++ b/lib/MC/MCAsmInfo.cpp @@ -18,7 +18,8 @@ #include <cstring> using namespace llvm; -MCAsmInfo::MCAsmInfo() { +MCAsmInfo::MCAsmInfo(bool isLittleEndian) { + IsLittleEndian = isLittleEndian; HasMachoZeroFillDirective = false; HasStaticCtorDtorReferenceInStaticMode = false; NonexecutableStackDirective = 0; diff --git a/lib/MC/MCAsmInfoCOFF.cpp b/lib/MC/MCAsmInfoCOFF.cpp index 1b27bf0..d384c6c 100644 --- a/lib/MC/MCAsmInfoCOFF.cpp +++ b/lib/MC/MCAsmInfoCOFF.cpp @@ -16,7 +16,7 @@ #include "llvm/ADT/SmallVector.h" using namespace llvm; -MCAsmInfoCOFF::MCAsmInfoCOFF() { +MCAsmInfoCOFF::MCAsmInfoCOFF(bool isLittleEndian) : MCAsmInfo(isLittleEndian) { GlobalPrefix = "_"; LCOMMDirective = "\t.lcomm\t"; COMMDirectiveTakesAlignment = false; diff --git a/lib/MC/MCAsmInfoDarwin.cpp b/lib/MC/MCAsmInfoDarwin.cpp index 664a55c..f024a16 100644 --- a/lib/MC/MCAsmInfoDarwin.cpp +++ b/lib/MC/MCAsmInfoDarwin.cpp @@ -15,7 +15,8 @@ #include "llvm/MC/MCAsmInfoDarwin.h" using namespace llvm; -MCAsmInfoDarwin::MCAsmInfoDarwin() { +MCAsmInfoDarwin::MCAsmInfoDarwin(bool isLittleEndian) + : MCAsmInfo(isLittleEndian) { // Common settings for all Darwin targets. // Syntax: GlobalPrefix = "_"; |