commit | 87f77b5f9a5654490cef338ae9f13703b915168e | [log] [tgz] |
---|---|---|
author | Jan Wen Voung <jvoung@google.com> | Mon Oct 04 17:32:41 2010 +0000 |
committer | Jan Wen Voung <jvoung@google.com> | Mon Oct 04 17:32:41 2010 +0000 |
tree | 242c3ab65b821a1972dce6be26aecb15207e13e9 | |
parent | 0d9c993401bd557b0c5953a4e6fdf4d79f5a52bc [diff] [blame] |
Add hook in MCSection to decide when to use "optimized nops", for each section kind. Previously, optimized nops were only used for MachO. Also added tests for ELF and COFF. llvm-svn: 115523
diff --git a/llvm/lib/MC/MCSectionCOFF.cpp b/llvm/lib/MC/MCSectionCOFF.cpp index eb53160..0909df4 100644 --- a/llvm/lib/MC/MCSectionCOFF.cpp +++ b/llvm/lib/MC/MCSectionCOFF.cpp
@@ -74,3 +74,7 @@ } } } + +bool MCSectionCOFF::UseCodeAlign() const { + return getKind().isText(); +}