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

Unified Diff: lib/Target/JSBackend/JSTargetMachine.h

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 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
Index: lib/Target/JSBackend/JSTargetMachine.h
diff --git a/lib/Target/JSBackend/JSTargetMachine.h b/lib/Target/JSBackend/JSTargetMachine.h
index 85b11a4d22b71512e42326f1276e05327a4a374f..3358e753fe5eb1f11b940e9b944f903c0096fc83 100644
--- a/lib/Target/JSBackend/JSTargetMachine.h
+++ b/lib/Target/JSBackend/JSTargetMachine.h
@@ -16,41 +16,25 @@
#define JSTARGETMACHINE_H
#include "JS.h"
-#include "llvm/IR/DataLayout.h"
#include "llvm/Target/TargetMachine.h"
-#include "llvm/Target/TargetSubtargetInfo.h"
namespace llvm {
class formatted_raw_ostream;
-class JSSubtarget : public TargetSubtargetInfo {
- const DataLayout *DL;
-public:
- JSSubtarget(const DataLayout *DL_) : DL(DL_) {}
- const DataLayout *getDataLayout() const override { return DL; }
-};
-
class JSTargetMachine : public TargetMachine {
- const DataLayout DL;
- JSSubtarget Subtarget;
-
public:
JSTargetMachine(const Target &T, StringRef Triple,
StringRef CPU, StringRef FS, const TargetOptions &Options,
Reloc::Model RM, CodeModel::Model CM,
CodeGenOpt::Level OL);
- bool addPassesToEmitFile(PassManagerBase &PM, formatted_raw_ostream &Out,
+ bool addPassesToEmitFile(PassManagerBase &PM, raw_pwrite_stream &Out,
CodeGenFileType FileType, bool DisableVerify,
AnalysisID StartAfter,
AnalysisID StopAfter) override;
- const DataLayout *getDataLayout() const { return &DL; }
- const JSSubtarget *getSubtargetImpl() const override { return &Subtarget; }
-
- /// \brief Register X86 analysis passes with a pass manager.
- void addAnalysisPasses(PassManagerBase &PM) override;
+ TargetIRAnalysis getTargetIRAnalysis() override;
};
} // End llvm namespace

Powered by Google App Engine
This is Rietveld 408576698