Add registry hook for assembly text output

llvm-svn: 118394
This commit is contained in:
Che-Liang Chiou
2010-11-08 02:21:17 +00:00
parent 40328bf5f3
commit 345b98eddd
3 changed files with 59 additions and 8 deletions

View File

@@ -342,9 +342,9 @@ static int AssembleInput(const char *ProgName) {
MCCodeEmitter *CE = 0;
if (ShowEncoding)
CE = TheTarget->createCodeEmitter(*TM, Ctx);
Str.reset(createAsmStreamer(Ctx, FOS,
TM->getTargetData()->isLittleEndian(),
/*asmverbose*/true, IP, CE, ShowInst));
Str.reset(TheTarget->createAsmStreamer(Ctx, FOS,
TM->getTargetData()->isLittleEndian(),
/*asmverbose*/true, IP, CE, ShowInst));
} else if (FileType == OFT_Null) {
Str.reset(createNullStreamer(Ctx));
} else {