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

Side by Side Diff: src/IceTargetLowering.h

Issue 1221643012: Subzero: Add -Wshadow to the build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 5 years, 5 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 /// \file 10 /// \file
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 395
396 protected: 396 protected:
397 void emitGlobal(const VariableDeclaration &Var, 397 void emitGlobal(const VariableDeclaration &Var,
398 const IceString &SectionSuffix); 398 const IceString &SectionSuffix);
399 399
400 /// For now, we assume .long is the right directive for emitting 4 byte 400 /// For now, we assume .long is the right directive for emitting 4 byte
401 /// emit global relocations. However, LLVM MIPS usually uses .4byte instead. 401 /// emit global relocations. However, LLVM MIPS usually uses .4byte instead.
402 /// Perhaps there is some difference when the location is unaligned. 402 /// Perhaps there is some difference when the location is unaligned.
403 static const char *getEmit32Directive() { return ".long"; } 403 static const char *getEmit32Directive() { return ".long"; }
404 404
405 explicit TargetDataLowering(GlobalContext *Ctx) : Ctx(Ctx) {} 405 explicit TargetDataLowering(GlobalContext *MyCtx) : Ctx(MyCtx) {}
406 GlobalContext *Ctx; 406 GlobalContext *Ctx;
407 }; 407 };
408 408
409 /// TargetHeaderLowering is used to "lower" the header of an output file. 409 /// TargetHeaderLowering is used to "lower" the header of an output file.
410 /// It writes out the target-specific header attributes. E.g., for ARM 410 /// It writes out the target-specific header attributes. E.g., for ARM
411 /// this writes out the build attributes (float ABI, etc.). 411 /// this writes out the build attributes (float ABI, etc.).
412 class TargetHeaderLowering { 412 class TargetHeaderLowering {
413 TargetHeaderLowering() = delete; 413 TargetHeaderLowering() = delete;
414 TargetHeaderLowering(const TargetHeaderLowering &) = delete; 414 TargetHeaderLowering(const TargetHeaderLowering &) = delete;
415 TargetHeaderLowering &operator=(const TargetHeaderLowering &) = delete; 415 TargetHeaderLowering &operator=(const TargetHeaderLowering &) = delete;
416 416
417 public: 417 public:
418 static std::unique_ptr<TargetHeaderLowering> 418 static std::unique_ptr<TargetHeaderLowering>
419 createLowering(GlobalContext *Ctx); 419 createLowering(GlobalContext *Ctx);
420 virtual ~TargetHeaderLowering(); 420 virtual ~TargetHeaderLowering();
421 421
422 virtual void lower() {} 422 virtual void lower() {}
423 423
424 protected: 424 protected:
425 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {} 425 explicit TargetHeaderLowering(GlobalContext *MyCtx) : Ctx(MyCtx) {}
426 GlobalContext *Ctx; 426 GlobalContext *Ctx;
427 }; 427 };
428 428
429 } // end of namespace Ice 429 } // end of namespace Ice
430 430
431 #endif // SUBZERO_SRC_ICETARGETLOWERING_H 431 #endif // SUBZERO_SRC_ICETARGETLOWERING_H
OLDNEW
« src/IceInst.h ('K') | « src/IceRegistersX8632.h ('k') | src/IceTargetLowering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698