projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add an assert.
[oota-llvm.git]
/
lib
/
MC
/
MCSectionCOFF.cpp
diff --git
a/lib/MC/MCSectionCOFF.cpp
b/lib/MC/MCSectionCOFF.cpp
index eb531600f72736e55259b11bbc3e243eb9fc29ab..90091f06e9acd2513e818715bfcd485bdd58b290 100644
(file)
--- a/
lib/MC/MCSectionCOFF.cpp
+++ b/
lib/MC/MCSectionCOFF.cpp
@@
-74,3
+74,11
@@
void MCSectionCOFF::PrintSwitchToSection(const MCAsmInfo &MAI,
}
}
}
+
+bool MCSectionCOFF::UseCodeAlign() const {
+ return getKind().isText();
+}
+
+bool MCSectionCOFF::isVirtualSection() const {
+ return getCharacteristics() & COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA;
+}