From 958d5eb0326c47cc8ece7dd5637ba77800f4b616 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 20 Apr 2009 18:07:22 +0000 Subject: Match C backend only if it explicitly requested. llvm-svn: 69613 --- llvm/lib/Target/CBackend/CTargetMachine.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/CBackend/CTargetMachine.h b/llvm/lib/Target/CBackend/CTargetMachine.h index ad89960b329..a17df050257 100644 --- a/llvm/lib/Target/CBackend/CTargetMachine.h +++ b/llvm/lib/Target/CBackend/CTargetMachine.h @@ -29,8 +29,9 @@ struct CTargetMachine : public TargetMachine { virtual bool addPassesToEmitWholeFile(PassManager &PM, raw_ostream &Out, CodeGenFileType FileType, bool Fast); - // This class always works, but shouldn't be the default in most cases. - static unsigned getModuleMatchQuality(const Module &M) { return 1; } + // This class always works, but must be requested explicitly on + // llc command line. + static unsigned getModuleMatchQuality(const Module &M) { return 0; } virtual const TargetData *getTargetData() const { return &DataLayout; } }; -- cgit v1.2.1