diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-23 04:28:49 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-23 04:28:49 +0000 |
| commit | aea4958ea6acd5d5820149cc76dae57a1f2c5c12 (patch) | |
| tree | 574d5e614651a478f6a3fede73b50d1b51037526 /llvm/lib/MC/MCContext.cpp | |
| parent | a914bed8006a754ce36ccb00860bd944ca8807ae (diff) | |
| download | bcm5719-llvm-aea4958ea6acd5d5820149cc76dae57a1f2c5c12.tar.gz bcm5719-llvm-aea4958ea6acd5d5820149cc76dae57a1f2c5c12.zip | |
Remove duplicated code.
llvm-svn: 124054
Diffstat (limited to 'llvm/lib/MC/MCContext.cpp')
| -rw-r--r-- | llvm/lib/MC/MCContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index 839c08d8a26..018f00c08f6 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -18,6 +18,7 @@ #include "llvm/Target/TargetAsmInfo.h" #include "llvm/ADT/SmallString.h" #include "llvm/ADT/Twine.h" +#include "llvm/Support/ELF.h" using namespace llvm; typedef StringMap<const MCSectionMachO*> MachOUniqueMapTy; @@ -211,7 +212,7 @@ getELFSection(StringRef Section, unsigned Type, unsigned Flags, const MCSectionELF *MCContext::CreateELFGroupSection() { MCSectionELF *Result = - new (*this) MCSectionELF(".group", MCSectionELF::SHT_GROUP, 0, + new (*this) MCSectionELF(".group", ELF::SHT_GROUP, 0, SectionKind::getReadOnly(), 4, NULL); return Result; } |

