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

Side by Side Diff: src/IceTargetLowering.h

Issue 874353006: Write out global initializers and data rel directly to ELF file. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: review #1 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 unified diff | Download patch
OLDNEW
1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- C++ -*-===// 1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file declares the TargetLowering and LoweringContext 10 // This file declares the TargetLowering and LoweringContext
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 class TargetGlobalLowering { 244 class TargetGlobalLowering {
245 TargetGlobalLowering() = delete; 245 TargetGlobalLowering() = delete;
246 TargetGlobalLowering(const TargetGlobalLowering &) = delete; 246 TargetGlobalLowering(const TargetGlobalLowering &) = delete;
247 TargetGlobalLowering &operator=(const TargetGlobalLowering &) = delete; 247 TargetGlobalLowering &operator=(const TargetGlobalLowering &) = delete;
248 248
249 public: 249 public:
250 static TargetGlobalLowering *createLowering(GlobalContext *Ctx); 250 static TargetGlobalLowering *createLowering(GlobalContext *Ctx);
251 virtual ~TargetGlobalLowering(); 251 virtual ~TargetGlobalLowering();
252 252
253 virtual void lowerInit(const VariableDeclaration &Var) const = 0; 253 virtual void lowerInit(const VariableDeclaration &Var) const = 0;
254 virtual void lowerInitELF(const VariableDeclarationList &Vars) const = 0;
254 virtual void lowerConstants(GlobalContext *Ctx) const = 0; 255 virtual void lowerConstants(GlobalContext *Ctx) const = 0;
255 256
256 protected: 257 protected:
257 TargetGlobalLowering(GlobalContext *Ctx) : Ctx(Ctx) {} 258 TargetGlobalLowering(GlobalContext *Ctx) : Ctx(Ctx) {}
258 GlobalContext *Ctx; 259 GlobalContext *Ctx;
259 }; 260 };
260 261
261 } // end of namespace Ice 262 } // end of namespace Ice
262 263
263 #endif // SUBZERO_SRC_ICETARGETLOWERING_H 264 #endif // SUBZERO_SRC_ICETARGETLOWERING_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698