Add hook in MCSection to decide when to use "optimized nops", for each
authorJan Wen Voung <jvoung@google.com>
Mon, 4 Oct 2010 17:32:41 +0000 (17:32 +0000)
committerJan Wen Voung <jvoung@google.com>
Mon, 4 Oct 2010 17:32:41 +0000 (17:32 +0000)
commit083cf1574facc9ce468fba1735c794bd7e520108
tree89bc4a3eeececcf7162c44251e43316055fa47e0
parent7a391832f46ca2947f6ee46f6fad53cf64197d28
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115523 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/MC/MCSection.h
include/llvm/MC/MCSectionCOFF.h
include/llvm/MC/MCSectionELF.h
include/llvm/MC/MCSectionMachO.h
lib/MC/MCParser/AsmParser.cpp
lib/MC/MCSectionCOFF.cpp
lib/MC/MCSectionELF.cpp
lib/MC/MCSectionMachO.cpp
lib/Target/PIC16/PIC16Section.cpp
lib/Target/PIC16/PIC16Section.h
test/MC/COFF/align-nops.s [new file with mode: 0644]
test/MC/COFF/dg.exp
test/MC/ELF/align-nops.s [new file with mode: 0644]