diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-31 17:47:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-31 17:47:16 +0000 |
commit | 56594f98848ac6d1885662644b5652c04c0d0831 (patch) | |
tree | f5dfb3ecf44bd901f18e4eaa1a552675ef1d1c93 /tools/llvm-mc/llvm-mc.cpp | |
parent | f26e03bc7e30162197641406e37e662a15d80f7e (diff) |
fix a bunch of failing tests now that MCContext::GetSection doesn't create sections.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77689 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc/llvm-mc.cpp')
-rw-r--r-- | tools/llvm-mc/llvm-mc.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp index 11d8b963d1..44a8319cd6 100644 --- a/tools/llvm-mc/llvm-mc.cpp +++ b/tools/llvm-mc/llvm-mc.cpp @@ -13,6 +13,7 @@ //===----------------------------------------------------------------------===// #include "llvm/MC/MCContext.h" +#include "llvm/MC/MCSection.h" #include "llvm/MC/MCStreamer.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/Support/CommandLine.h" @@ -189,8 +190,8 @@ static int AssembleInput(const char *ProgName) { OwningPtr<MCStreamer> Str(createAsmStreamer(Ctx, outs())); // FIXME: Target hook & command line option for initial section. - Str.get()->SwitchSection(Ctx.GetSection("__TEXT,__text," - "regular,pure_instructions")); + Str.get()->SwitchSection(MCSection::Create("__TEXT,__text," + "regular,pure_instructions", Ctx)); AsmParser Parser(SrcMgr, Ctx, *Str.get()); OwningPtr<TargetAsmParser> TAP(GetTargetAsmParser(ProgName, Parser)); |