diff options
author | Devang Patel <dpatel@apple.com> | 2009-04-20 18:07:22 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-04-20 18:07:22 +0000 |
commit | 46e532c12e016a3f318d1b574a86a2a7195ad2ed (patch) | |
tree | fd8be9d5e819a35dfb6f17c4477463c31bc3287d /lib/Target/CBackend | |
parent | 74b0a63cf18e7a48e98e7e0149181a696d8f388a (diff) | |
download | external_llvm-46e532c12e016a3f318d1b574a86a2a7195ad2ed.zip external_llvm-46e532c12e016a3f318d1b574a86a2a7195ad2ed.tar.gz external_llvm-46e532c12e016a3f318d1b574a86a2a7195ad2ed.tar.bz2 |
Match C backend only if it explicitly requested.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend')
-rw-r--r-- | lib/Target/CBackend/CTargetMachine.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CTargetMachine.h b/lib/Target/CBackend/CTargetMachine.h index ad89960..a17df05 100644 --- a/lib/Target/CBackend/CTargetMachine.h +++ b/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; } }; |