Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Unified Diff: include/llvm/Support/TargetRegistry.h

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/llvm/Support/StreamingMemoryObject.h ('k') | include/llvm/Target/TargetLibraryInfo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/llvm/Support/TargetRegistry.h
diff --git a/include/llvm/Support/TargetRegistry.h b/include/llvm/Support/TargetRegistry.h
index 8ac4b904bb8807f18f681c4e94e79c14dda87cf3..693f00d0bd8150774bde345a56c5e8d529cecfcb 100644
--- a/include/llvm/Support/TargetRegistry.h
+++ b/include/llvm/Support/TargetRegistry.h
@@ -733,7 +733,13 @@ namespace llvm {
/// @param Fn - A function to construct an MCInstPrinter for the target.
static void RegisterMCInstPrinter(Target &T,
Target::MCInstPrinterCtorTy Fn) {
+ // @LOCALMOD-BEGIN
+ // Prune out the .s printer for the sandboxed translator,
+ // by preventing an InstPrinter from being used at all.
+ #if !defined(__native_client__)
T.MCInstPrinterCtorFn = Fn;
+ #endif
+ // @LOCALMOD-END
}
/// RegisterMCCodeEmitter - Register a MCCodeEmitter implementation for the
« no previous file with comments | « include/llvm/Support/StreamingMemoryObject.h ('k') | include/llvm/Target/TargetLibraryInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698