blob: 25ce25c325ef0670fdc0c5c3a30603f23862f9e3 [file] [log] [blame]
Chris Lattner7e1a8f82010-04-04 19:09:29 +00001//===-- AsmPrinterInlineAsm.cpp - AsmPrinter Inline Asm Handling ----------===//
Chris Lattner736e31d2010-04-04 18:34:07 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
Chris Lattner7e1a8f82010-04-04 19:09:29 +000010// This file implements the inline assembler pieces of the AsmPrinter class.
Chris Lattner736e31d2010-04-04 18:34:07 +000011//
12//===----------------------------------------------------------------------===//
13
14#define DEBUG_TYPE "asm-printer"
Chris Lattner736e31d2010-04-04 18:34:07 +000015#include "llvm/CodeGen/AsmPrinter.h"
Chris Lattnercf9a4152010-04-07 05:38:05 +000016#include "llvm/Constants.h"
Chris Lattner7e1a8f82010-04-04 19:09:29 +000017#include "llvm/InlineAsm.h"
Chris Lattner6eb78062010-04-06 00:55:39 +000018#include "llvm/LLVMContext.h"
19#include "llvm/Module.h"
Chris Lattner736e31d2010-04-04 18:34:07 +000020#include "llvm/CodeGen/MachineBasicBlock.h"
Chris Lattner6eb78062010-04-06 00:55:39 +000021#include "llvm/CodeGen/MachineModuleInfo.h"
Chris Lattner736e31d2010-04-04 18:34:07 +000022#include "llvm/MC/MCAsmInfo.h"
23#include "llvm/MC/MCStreamer.h"
24#include "llvm/MC/MCSymbol.h"
Chris Lattneraf632c92010-04-05 23:11:24 +000025#include "llvm/Target/TargetAsmParser.h"
26#include "llvm/Target/TargetMachine.h"
27#include "llvm/Target/TargetRegistry.h"
28#include "llvm/ADT/OwningPtr.h"
Chris Lattner736e31d2010-04-04 18:34:07 +000029#include "llvm/ADT/SmallString.h"
30#include "llvm/ADT/Twine.h"
31#include "llvm/Support/ErrorHandling.h"
Chris Lattneraf632c92010-04-05 23:11:24 +000032#include "llvm/Support/MemoryBuffer.h"
33#include "llvm/Support/SourceMgr.h"
Chris Lattner736e31d2010-04-04 18:34:07 +000034#include "llvm/Support/raw_ostream.h"
Chris Lattner736e31d2010-04-04 18:34:07 +000035using namespace llvm;
36
Chris Lattner6e30c6a2010-11-17 08:03:32 +000037namespace {
38 struct SrcMgrDiagInfo {
39 const MDNode *LocInfo;
40 void *DiagHandler;
41 void *DiagContext;
42 };
43}
44
45/// SrcMgrDiagHandler - This callback is invoked when the SourceMgr for an
46/// inline asm has an error in it. diagInfo is a pointer to the SrcMgrDiagInfo
47/// struct above.
48static void SrcMgrDiagHandler(const SMDiagnostic &Diag, void *diagInfo,
49 unsigned locCookie) {
50 SrcMgrDiagInfo *DiagInfo = static_cast<SrcMgrDiagInfo *>(diagInfo);
51 assert(DiagInfo && "Diagnostic context not passed down?");
52
53 unsigned LocCookie = 0;
54 if (const MDNode *LocInfo = DiagInfo->LocInfo)
55 if (LocInfo->getNumOperands() > 0)
56 if (const ConstantInt *CI = dyn_cast<ConstantInt>(LocInfo->getOperand(0)))
57 LocCookie = CI->getZExtValue();
58
59 SourceMgr::DiagHandlerTy ChainHandler =
60 (SourceMgr::DiagHandlerTy)(intptr_t)DiagInfo->DiagHandler;
61
62 ChainHandler(Diag, DiagInfo->DiagContext, LocCookie);
63}
64
Chris Lattner736e31d2010-04-04 18:34:07 +000065/// EmitInlineAsm - Emit a blob of inline asm to the output streamer.
Chris Lattnera38941d2010-11-17 07:53:40 +000066void AsmPrinter::EmitInlineAsm(StringRef Str, const MDNode *LocMDNode) const {
Chris Lattner736e31d2010-04-04 18:34:07 +000067 assert(!Str.empty() && "Can't emit empty inline asm block");
Jim Grosbach2b2de242010-10-01 23:29:12 +000068
Chris Lattneraf632c92010-04-05 23:11:24 +000069 // Remember if the buffer is nul terminated or not so we can avoid a copy.
70 bool isNullTerminated = Str.back() == 0;
71 if (isNullTerminated)
72 Str = Str.substr(0, Str.size()-1);
Jim Grosbach2b2de242010-10-01 23:29:12 +000073
Chris Lattner736e31d2010-04-04 18:34:07 +000074 // If the output streamer is actually a .s file, just emit the blob textually.
75 // This is useful in case the asm parser doesn't handle something but the
76 // system assembler does.
77 if (OutStreamer.hasRawTextSupport()) {
78 OutStreamer.EmitRawText(Str);
79 return;
80 }
Jim Grosbach2b2de242010-10-01 23:29:12 +000081
Chris Lattneraf632c92010-04-05 23:11:24 +000082 SourceMgr SrcMgr;
Chris Lattner6e30c6a2010-11-17 08:03:32 +000083 SrcMgrDiagInfo DiagInfo;
Jim Grosbach2b2de242010-10-01 23:29:12 +000084
Chris Lattner6eb78062010-04-06 00:55:39 +000085 // If the current LLVMContext has an inline asm handler, set it in SourceMgr.
86 LLVMContext &LLVMCtx = MMI->getModule()->getContext();
87 bool HasDiagHandler = false;
88 if (void *DiagHandler = LLVMCtx.getInlineAsmDiagnosticHandler()) {
Chris Lattner6e30c6a2010-11-17 08:03:32 +000089 // If the source manager has an issue, we arrange for SrcMgrDiagHandler
90 // to be invoked, getting DiagInfo passed into it.
91 DiagInfo.LocInfo = LocMDNode;
92 DiagInfo.DiagHandler = DiagHandler;
93 DiagInfo.DiagContext = LLVMCtx.getInlineAsmDiagnosticContext();
94 SrcMgr.setDiagHandler(SrcMgrDiagHandler, &DiagInfo);
Chris Lattner6eb78062010-04-06 00:55:39 +000095 HasDiagHandler = true;
96 }
Jim Grosbach2b2de242010-10-01 23:29:12 +000097
Chris Lattneraf632c92010-04-05 23:11:24 +000098 MemoryBuffer *Buffer;
99 if (isNullTerminated)
100 Buffer = MemoryBuffer::getMemBuffer(Str, "<inline asm>");
101 else
102 Buffer = MemoryBuffer::getMemBufferCopy(Str, "<inline asm>");
103
104 // Tell SrcMgr about this buffer, it takes ownership of the buffer.
105 SrcMgr.AddNewSourceBuffer(Buffer, SMLoc());
Jim Grosbach2b2de242010-10-01 23:29:12 +0000106
Daniel Dunbar9fbb37e2010-07-18 18:31:33 +0000107 OwningPtr<MCAsmParser> Parser(createMCAsmParser(TM.getTarget(), SrcMgr,
108 OutContext, OutStreamer,
109 *MAI));
Daniel Dunbard73ada72010-07-19 00:33:49 +0000110 OwningPtr<TargetAsmParser> TAP(TM.getTarget().createAsmParser(*Parser, TM));
Chris Lattneraf632c92010-04-05 23:11:24 +0000111 if (!TAP)
Chris Lattner75361b62010-04-07 22:58:41 +0000112 report_fatal_error("Inline asm not supported by this streamer because"
Benjamin Kramer1bd73352010-04-08 10:44:28 +0000113 " we don't have an asm parser for this target\n");
Daniel Dunbar9fbb37e2010-07-18 18:31:33 +0000114 Parser->setTargetParser(*TAP.get());
Chris Lattneraf632c92010-04-05 23:11:24 +0000115
116 // Don't implicitly switch to the text section before the asm.
Daniel Dunbar9fbb37e2010-07-18 18:31:33 +0000117 int Res = Parser->Run(/*NoInitialTextSection*/ true,
118 /*NoFinalize*/ true);
Chris Lattner6eb78062010-04-06 00:55:39 +0000119 if (Res && !HasDiagHandler)
Chris Lattner75361b62010-04-07 22:58:41 +0000120 report_fatal_error("Error parsing inline asm\n");
Chris Lattner736e31d2010-04-04 18:34:07 +0000121}
122
123
124/// EmitInlineAsm - This method formats and emits the specified machine
125/// instruction that is an inline asm.
126void AsmPrinter::EmitInlineAsm(const MachineInstr *MI) const {
127 assert(MI->isInlineAsm() && "printInlineAsm only works on inline asms");
Jim Grosbach2b2de242010-10-01 23:29:12 +0000128
Chris Lattner736e31d2010-04-04 18:34:07 +0000129 unsigned NumOperands = MI->getNumOperands();
Jim Grosbach2b2de242010-10-01 23:29:12 +0000130
Chris Lattner736e31d2010-04-04 18:34:07 +0000131 // Count the number of register definitions to find the asm string.
132 unsigned NumDefs = 0;
133 for (; MI->getOperand(NumDefs).isReg() && MI->getOperand(NumDefs).isDef();
134 ++NumDefs)
Chris Lattnercf9a4152010-04-07 05:38:05 +0000135 assert(NumDefs != NumOperands-2 && "No asm string?");
Jim Grosbach2b2de242010-10-01 23:29:12 +0000136
Chris Lattner736e31d2010-04-04 18:34:07 +0000137 assert(MI->getOperand(NumDefs).isSymbol() && "No asm string?");
138
139 // Disassemble the AsmStr, printing out the literal pieces, the operands, etc.
140 const char *AsmStr = MI->getOperand(NumDefs).getSymbolName();
141
142 // If this asmstr is empty, just print the #APP/#NOAPP markers.
143 // These are useful to see where empty asm's wound up.
144 if (AsmStr[0] == 0) {
Chris Lattner4c842dd2010-04-05 22:42:30 +0000145 // Don't emit the comments if writing to a .o file.
Chris Lattner736e31d2010-04-04 18:34:07 +0000146 if (!OutStreamer.hasRawTextSupport()) return;
147
148 OutStreamer.EmitRawText(Twine("\t")+MAI->getCommentString()+
149 MAI->getInlineAsmStart());
150 OutStreamer.EmitRawText(Twine("\t")+MAI->getCommentString()+
151 MAI->getInlineAsmEnd());
152 return;
153 }
154
155 // Emit the #APP start marker. This has to happen even if verbose-asm isn't
156 // enabled, so we use EmitRawText.
157 if (OutStreamer.hasRawTextSupport())
158 OutStreamer.EmitRawText(Twine("\t")+MAI->getCommentString()+
159 MAI->getInlineAsmStart());
160
Chris Lattnercf9a4152010-04-07 05:38:05 +0000161 // Get the !srcloc metadata node if we have it, and decode the loc cookie from
162 // it.
163 unsigned LocCookie = 0;
Chris Lattnera38941d2010-11-17 07:53:40 +0000164 const MDNode *LocMD = 0;
Chris Lattnerd0024fe2010-04-08 18:20:52 +0000165 for (unsigned i = MI->getNumOperands(); i != 0; --i) {
Chris Lattnera38941d2010-11-17 07:53:40 +0000166 if (MI->getOperand(i-1).isMetadata() &&
167 (LocMD = MI->getOperand(i-1).getMetadata()) &&
168 LocMD->getNumOperands() != 0) {
169 if (const ConstantInt *CI = dyn_cast<ConstantInt>(LocMD->getOperand(0))) {
170 LocCookie = CI->getZExtValue();
171 break;
172 }
173 }
Chris Lattnercf9a4152010-04-07 05:38:05 +0000174 }
Jim Grosbach2b2de242010-10-01 23:29:12 +0000175
Chris Lattner736e31d2010-04-04 18:34:07 +0000176 // Emit the inline asm to a temporary string so we can emit it through
177 // EmitInlineAsm.
178 SmallString<256> StringData;
179 raw_svector_ostream OS(StringData);
Jim Grosbach2b2de242010-10-01 23:29:12 +0000180
Chris Lattner736e31d2010-04-04 18:34:07 +0000181 OS << '\t';
182
183 // The variant of the current asmprinter.
184 int AsmPrinterVariant = MAI->getAssemblerDialect();
185
186 int CurVariant = -1; // The number of the {.|.|.} region we are in.
187 const char *LastEmitted = AsmStr; // One past the last character emitted.
Jim Grosbach2b2de242010-10-01 23:29:12 +0000188
Chris Lattner736e31d2010-04-04 18:34:07 +0000189 while (*LastEmitted) {
190 switch (*LastEmitted) {
191 default: {
192 // Not a special case, emit the string section literally.
193 const char *LiteralEnd = LastEmitted+1;
194 while (*LiteralEnd && *LiteralEnd != '{' && *LiteralEnd != '|' &&
195 *LiteralEnd != '}' && *LiteralEnd != '$' && *LiteralEnd != '\n')
196 ++LiteralEnd;
197 if (CurVariant == -1 || CurVariant == AsmPrinterVariant)
198 OS.write(LastEmitted, LiteralEnd-LastEmitted);
199 LastEmitted = LiteralEnd;
200 break;
201 }
202 case '\n':
203 ++LastEmitted; // Consume newline character.
Chris Lattner4c842dd2010-04-05 22:42:30 +0000204 OS << '\n'; // Indent code with newline.
Chris Lattner736e31d2010-04-04 18:34:07 +0000205 break;
206 case '$': {
207 ++LastEmitted; // Consume '$' character.
208 bool Done = true;
209
210 // Handle escapes.
211 switch (*LastEmitted) {
212 default: Done = false; break;
213 case '$': // $$ -> $
214 if (CurVariant == -1 || CurVariant == AsmPrinterVariant)
215 OS << '$';
216 ++LastEmitted; // Consume second '$' character.
217 break;
218 case '(': // $( -> same as GCC's { character.
219 ++LastEmitted; // Consume '(' character.
Chris Lattnerfee455e2010-04-07 05:27:36 +0000220 if (CurVariant != -1)
Benjamin Kramer1bd73352010-04-08 10:44:28 +0000221 report_fatal_error("Nested variants found in inline asm string: '" +
222 Twine(AsmStr) + "'");
Chris Lattner736e31d2010-04-04 18:34:07 +0000223 CurVariant = 0; // We're in the first variant now.
224 break;
225 case '|':
226 ++LastEmitted; // consume '|' character.
227 if (CurVariant == -1)
228 OS << '|'; // this is gcc's behavior for | outside a variant
229 else
230 ++CurVariant; // We're in the next variant.
231 break;
232 case ')': // $) -> same as GCC's } char.
233 ++LastEmitted; // consume ')' character.
234 if (CurVariant == -1)
235 OS << '}'; // this is gcc's behavior for } outside a variant
Jim Grosbach2b2de242010-10-01 23:29:12 +0000236 else
Chris Lattner736e31d2010-04-04 18:34:07 +0000237 CurVariant = -1;
238 break;
239 }
240 if (Done) break;
Jim Grosbach2b2de242010-10-01 23:29:12 +0000241
Chris Lattner736e31d2010-04-04 18:34:07 +0000242 bool HasCurlyBraces = false;
243 if (*LastEmitted == '{') { // ${variable}
244 ++LastEmitted; // Consume '{' character.
245 HasCurlyBraces = true;
246 }
Jim Grosbach2b2de242010-10-01 23:29:12 +0000247
Chris Lattner736e31d2010-04-04 18:34:07 +0000248 // If we have ${:foo}, then this is not a real operand reference, it is a
249 // "magic" string reference, just like in .td files. Arrange to call
250 // PrintSpecial.
251 if (HasCurlyBraces && *LastEmitted == ':') {
252 ++LastEmitted;
253 const char *StrStart = LastEmitted;
254 const char *StrEnd = strchr(StrStart, '}');
255 if (StrEnd == 0)
Benjamin Kramer1bd73352010-04-08 10:44:28 +0000256 report_fatal_error("Unterminated ${:foo} operand in inline asm"
257 " string: '" + Twine(AsmStr) + "'");
Jim Grosbach2b2de242010-10-01 23:29:12 +0000258
Chris Lattner736e31d2010-04-04 18:34:07 +0000259 std::string Val(StrStart, StrEnd);
260 PrintSpecial(MI, OS, Val.c_str());
261 LastEmitted = StrEnd+1;
262 break;
263 }
Jim Grosbach2b2de242010-10-01 23:29:12 +0000264
Chris Lattner736e31d2010-04-04 18:34:07 +0000265 const char *IDStart = LastEmitted;
Chris Lattner65eeaad2010-04-04 18:42:18 +0000266 const char *IDEnd = IDStart;
Jim Grosbach2b2de242010-10-01 23:29:12 +0000267 while (*IDEnd >= '0' && *IDEnd <= '9') ++IDEnd;
268
Chris Lattner65eeaad2010-04-04 18:42:18 +0000269 unsigned Val;
270 if (StringRef(IDStart, IDEnd-IDStart).getAsInteger(10, Val))
Benjamin Kramer1bd73352010-04-08 10:44:28 +0000271 report_fatal_error("Bad $ operand number in inline asm string: '" +
272 Twine(AsmStr) + "'");
Chris Lattner736e31d2010-04-04 18:34:07 +0000273 LastEmitted = IDEnd;
Jim Grosbach2b2de242010-10-01 23:29:12 +0000274
Chris Lattner736e31d2010-04-04 18:34:07 +0000275 char Modifier[2] = { 0, 0 };
Jim Grosbach2b2de242010-10-01 23:29:12 +0000276
Chris Lattner736e31d2010-04-04 18:34:07 +0000277 if (HasCurlyBraces) {
278 // If we have curly braces, check for a modifier character. This
279 // supports syntax like ${0:u}, which correspond to "%u0" in GCC asm.
280 if (*LastEmitted == ':') {
281 ++LastEmitted; // Consume ':' character.
Chris Lattner4c842dd2010-04-05 22:42:30 +0000282 if (*LastEmitted == 0)
Chris Lattner75361b62010-04-07 22:58:41 +0000283 report_fatal_error("Bad ${:} expression in inline asm string: '" +
Benjamin Kramer1bd73352010-04-08 10:44:28 +0000284 Twine(AsmStr) + "'");
Jim Grosbach2b2de242010-10-01 23:29:12 +0000285
Chris Lattner736e31d2010-04-04 18:34:07 +0000286 Modifier[0] = *LastEmitted;
287 ++LastEmitted; // Consume modifier character.
288 }
Jim Grosbach2b2de242010-10-01 23:29:12 +0000289
Chris Lattner4c842dd2010-04-05 22:42:30 +0000290 if (*LastEmitted != '}')
Benjamin Kramer1bd73352010-04-08 10:44:28 +0000291 report_fatal_error("Bad ${} expression in inline asm string: '" +
292 Twine(AsmStr) + "'");
Chris Lattner736e31d2010-04-04 18:34:07 +0000293 ++LastEmitted; // Consume '}' character.
294 }
Jim Grosbach2b2de242010-10-01 23:29:12 +0000295
Chris Lattner4c842dd2010-04-05 22:42:30 +0000296 if (Val >= NumOperands-1)
Benjamin Kramer1bd73352010-04-08 10:44:28 +0000297 report_fatal_error("Invalid $ operand number in inline asm string: '" +
298 Twine(AsmStr) + "'");
Jim Grosbach2b2de242010-10-01 23:29:12 +0000299
Chris Lattner736e31d2010-04-04 18:34:07 +0000300 // Okay, we finally have a value number. Ask the target to print this
301 // operand!
302 if (CurVariant == -1 || CurVariant == AsmPrinterVariant) {
Dale Johannesenf1e309e2010-07-02 20:16:09 +0000303 unsigned OpNo = 2;
Chris Lattner736e31d2010-04-04 18:34:07 +0000304
305 bool Error = false;
306
307 // Scan to find the machine operand number for the operand.
308 for (; Val; --Val) {
309 if (OpNo >= MI->getNumOperands()) break;
310 unsigned OpFlags = MI->getOperand(OpNo).getImm();
311 OpNo += InlineAsm::getNumOperandRegisters(OpFlags) + 1;
312 }
313
314 if (OpNo >= MI->getNumOperands()) {
315 Error = true;
316 } else {
317 unsigned OpFlags = MI->getOperand(OpNo).getImm();
318 ++OpNo; // Skip over the ID number.
319
320 if (Modifier[0] == 'l') // labels are target independent
321 // FIXME: What if the operand isn't an MBB, report error?
322 OS << *MI->getOperand(OpNo).getMBB()->getSymbol();
323 else {
324 AsmPrinter *AP = const_cast<AsmPrinter*>(this);
Chris Lattnerfee455e2010-04-07 05:27:36 +0000325 if (InlineAsm::isMemKind(OpFlags)) {
Chris Lattner736e31d2010-04-04 18:34:07 +0000326 Error = AP->PrintAsmMemoryOperand(MI, OpNo, AsmPrinterVariant,
327 Modifier[0] ? Modifier : 0,
328 OS);
329 } else {
330 Error = AP->PrintAsmOperand(MI, OpNo, AsmPrinterVariant,
331 Modifier[0] ? Modifier : 0, OS);
332 }
333 }
334 }
335 if (Error) {
336 std::string msg;
337 raw_string_ostream Msg(msg);
Chris Lattner38686bd2010-04-07 23:40:44 +0000338 Msg << "invalid operand in inline asm: '" << AsmStr << "'";
339 MMI->getModule()->getContext().emitError(LocCookie, Msg.str());
Chris Lattner736e31d2010-04-04 18:34:07 +0000340 }
341 }
342 break;
343 }
344 }
345 }
Chris Lattneraf632c92010-04-05 23:11:24 +0000346 OS << '\n' << (char)0; // null terminate string.
Chris Lattnera38941d2010-11-17 07:53:40 +0000347 EmitInlineAsm(OS.str(), LocMD);
Jim Grosbach2b2de242010-10-01 23:29:12 +0000348
Chris Lattner736e31d2010-04-04 18:34:07 +0000349 // Emit the #NOAPP end marker. This has to happen even if verbose-asm isn't
350 // enabled, so we use EmitRawText.
351 if (OutStreamer.hasRawTextSupport())
352 OutStreamer.EmitRawText(Twine("\t")+MAI->getCommentString()+
353 MAI->getInlineAsmEnd());
354}
355
356
357/// PrintSpecial - Print information related to the specified machine instr
358/// that is independent of the operand, and may be independent of the instr
359/// itself. This can be useful for portably encoding the comment character
360/// or other bits of target-specific knowledge into the asmstrings. The
361/// syntax used is ${:comment}. Targets can override this to add support
362/// for their own strange codes.
363void AsmPrinter::PrintSpecial(const MachineInstr *MI, raw_ostream &OS,
364 const char *Code) const {
365 if (!strcmp(Code, "private")) {
366 OS << MAI->getPrivateGlobalPrefix();
367 } else if (!strcmp(Code, "comment")) {
368 OS << MAI->getCommentString();
369 } else if (!strcmp(Code, "uid")) {
370 // Comparing the address of MI isn't sufficient, because machineinstrs may
371 // be allocated to the same address across functions.
Jim Grosbach2b2de242010-10-01 23:29:12 +0000372
Chris Lattner736e31d2010-04-04 18:34:07 +0000373 // If this is a new LastFn instruction, bump the counter.
374 if (LastMI != MI || LastFn != getFunctionNumber()) {
375 ++Counter;
376 LastMI = MI;
377 LastFn = getFunctionNumber();
378 }
379 OS << Counter;
380 } else {
381 std::string msg;
382 raw_string_ostream Msg(msg);
383 Msg << "Unknown special formatter '" << Code
384 << "' for machine instr: " << *MI;
Chris Lattner75361b62010-04-07 22:58:41 +0000385 report_fatal_error(Msg.str());
Jim Grosbach2b2de242010-10-01 23:29:12 +0000386 }
Chris Lattner736e31d2010-04-04 18:34:07 +0000387}
388
389/// PrintAsmOperand - Print the specified operand of MI, an INLINEASM
390/// instruction, using the specified assembler variant. Targets should
391/// override this to format as appropriate.
392bool AsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
393 unsigned AsmVariant, const char *ExtraCode,
394 raw_ostream &O) {
395 // Target doesn't support this yet!
396 return true;
397}
398
399bool AsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI, unsigned OpNo,
400 unsigned AsmVariant,
401 const char *ExtraCode, raw_ostream &O) {
402 // Target doesn't support this yet!
403 return true;
404}
405