projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make llvm-objdump handle both arm and thumb disassembly from the same Mach-O
[oota-llvm.git]
/
lib
/
MC
/
MCAsmInfoCOFF.cpp
diff --git
a/lib/MC/MCAsmInfoCOFF.cpp
b/lib/MC/MCAsmInfoCOFF.cpp
index e395acdd313bafe2b8e6f9a0bd80b33998d7314d..bb3f0d3a42973530655023f8c1061edfa424acdf 100644
(file)
--- a/
lib/MC/MCAsmInfoCOFF.cpp
+++ b/
lib/MC/MCAsmInfoCOFF.cpp
@@
-13,28
+13,38
@@
//===----------------------------------------------------------------------===//
#include "llvm/MC/MCAsmInfoCOFF.h"
//===----------------------------------------------------------------------===//
#include "llvm/MC/MCAsmInfoCOFF.h"
-#include "llvm/ADT/SmallVector.h"
using namespace llvm;
using namespace llvm;
+void MCAsmInfoCOFF::anchor() { }
+
MCAsmInfoCOFF::MCAsmInfoCOFF() {
MCAsmInfoCOFF::MCAsmInfoCOFF() {
- GlobalPrefix = "_";
- HasLCOMMDirective = true;
- COMMDirectiveTakesAlignment = false;
+ // MingW 4.5 and later support .comm with log2 alignment, but .lcomm uses byte
+ // alignment.
+ COMMDirectiveAlignmentIsInBytes = false;
+ LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment;
HasDotTypeDotSizeDirective = false;
HasSingleParameterDotFile = false;
HasDotTypeDotSizeDirective = false;
HasSingleParameterDotFile = false;
- PrivateGlobalPrefix = "L"; // Prefix for private global symbols
WeakRefDirective = "\t.weak\t";
WeakRefDirective = "\t.weak\t";
- LinkOnceDirective = "\t.linkonce same_size\n";
- SetDirective = "\t.set\t";
-
+ HasLinkOnceDirective = true;
+
// Doesn't support visibility:
// Doesn't support visibility:
- HiddenVisibilityAttr = ProtectedVisibilityAttr = MCSA_Invalid;
+ HiddenVisibilityAttr = HiddenDeclarationVisibilityAttr = MCSA_Invalid;
+ ProtectedVisibilityAttr = MCSA_Invalid;
// Set up DWARF directives
// Set up DWARF directives
- HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
- AbsoluteDebugSectionOffsets = true;
- AbsoluteEHSectionOffsets = false;
SupportsDebugInformation = true;
SupportsDebugInformation = true;
- DwarfSectionOffsetDirective = "\t.secrel32\t";
+ NeedsDwarfSectionOffsetDirective = true;
+
+ UseIntegratedAssembler = true;
}
}
+void MCAsmInfoMicrosoft::anchor() { }
+
+MCAsmInfoMicrosoft::MCAsmInfoMicrosoft() {
+}
+
+void MCAsmInfoGNUCOFF::anchor() { }
+
+MCAsmInfoGNUCOFF::MCAsmInfoGNUCOFF() {
+
+}