Pass TargetOptions to HexagonTargetMachine constructor by reference to match other...
authorCraig Topper <craig.topper@gmail.com>
Sat, 17 Mar 2012 09:24:09 +0000 (09:24 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 17 Mar 2012 09:24:09 +0000 (09:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152979 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/HexagonTargetMachine.cpp
lib/Target/Hexagon/HexagonTargetMachine.h

index 319eab2a2545fdc00b3ce00ed00c9de527f33f60..b9e68949366f66e4a8af03e2515614b06e572548 100644 (file)
@@ -50,7 +50,7 @@ extern "C" void LLVMInitializeHexagonTarget() {
 ///
 HexagonTargetMachine::HexagonTargetMachine(const Target &T, StringRef TT,
                                            StringRef CPU, StringRef FS,
-                                           TargetOptions Options,
+                                           const TargetOptions &Options,
                                            Reloc::Model RM,
                                            CodeModel::Model CM,
                                            CodeGenOpt::Level OL)
index 70bea56cfd947f4fa400da4bb4860383a5b37092..30fe9a6facff005edaa4c64ebfcc80d872c59a82 100644 (file)
@@ -37,8 +37,9 @@ class HexagonTargetMachine : public LLVMTargetMachine {
 
 public:
   HexagonTargetMachine(const Target &T, StringRef TT,StringRef CPU,
-                       StringRef FS, TargetOptions Options, Reloc::Model RM,
-                       CodeModel::Model CM, CodeGenOpt::Level OL);
+                       StringRef FS, const TargetOptions &Options,
+                       Reloc::Model RM, CodeModel::Model CM,
+                       CodeGenOpt::Level OL);
 
   virtual const HexagonInstrInfo *getInstrInfo() const {
     return &InstrInfo;