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

Side by Side Diff: lib/Target/ARM/ARMSubtarget.h

Issue 738143002: Add flag to enable Dwarf exception handling on ARM (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@merge_35
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===-- ARMSubtarget.h - Define Subtarget for the ARM ----------*- C++ -*--===// 1 //===-- ARMSubtarget.h - Define Subtarget for the ARM ----------*- C++ -*--===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // The LLVM Compiler Infrastructure
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 ARM specific subclass of TargetSubtargetInfo. 10 // This file declares the ARM specific subclass of TargetSubtargetInfo.
(...skipping 22 matching lines...) Expand all
33 #include <string> 33 #include <string>
34 34
35 #define GET_SUBTARGETINFO_HEADER 35 #define GET_SUBTARGETINFO_HEADER
36 #include "ARMGenSubtargetInfo.inc" 36 #include "ARMGenSubtargetInfo.inc"
37 37
38 namespace llvm { 38 namespace llvm {
39 class GlobalValue; 39 class GlobalValue;
40 class StringRef; 40 class StringRef;
41 class TargetOptions; 41 class TargetOptions;
42 42
43 extern cl::opt<bool> EnableARMDwarfEH; // @LOCALMOD
44
43 class ARMSubtarget : public ARMGenSubtargetInfo { 45 class ARMSubtarget : public ARMGenSubtargetInfo {
44 protected: 46 protected:
45 enum ARMProcFamilyEnum { 47 enum ARMProcFamilyEnum {
46 Others, CortexA5, CortexA7, CortexA8, CortexA9, CortexA12, CortexA15, 48 Others, CortexA5, CortexA7, CortexA8, CortexA9, CortexA12, CortexA15,
47 CortexR5, Swift, CortexA53, CortexA57, Krait 49 CortexR5, Swift, CortexA53, CortexA57, Krait
48 }; 50 };
49 enum ARMProcClassEnum { 51 enum ARMProcClassEnum {
50 None, AClass, RClass, MClass 52 None, AClass, RClass, MClass
51 }; 53 };
52 54
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 } 378 }
377 379
378 // ARM Targets that support EHABI exception handling standard 380 // ARM Targets that support EHABI exception handling standard
379 // Darwin uses SjLj. Other targets might need more checks. 381 // Darwin uses SjLj. Other targets might need more checks.
380 bool isTargetEHABICompatible() const { 382 bool isTargetEHABICompatible() const {
381 return (TargetTriple.getEnvironment() == Triple::EABI || 383 return (TargetTriple.getEnvironment() == Triple::EABI ||
382 TargetTriple.getEnvironment() == Triple::GNUEABI || 384 TargetTriple.getEnvironment() == Triple::GNUEABI ||
383 TargetTriple.getEnvironment() == Triple::EABIHF || 385 TargetTriple.getEnvironment() == Triple::EABIHF ||
384 TargetTriple.getEnvironment() == Triple::GNUEABIHF || 386 TargetTriple.getEnvironment() == Triple::GNUEABIHF ||
385 TargetTriple.getEnvironment() == Triple::Android) && 387 TargetTriple.getEnvironment() == Triple::Android) &&
386 !isTargetDarwin() && !isTargetWindows(); 388 !isTargetDarwin() && !isTargetWindows() && !EnableARMDwarfEH;//@LOCALMOD
JF 2014/11/19 19:32:05 !isTargetNaCl() ?
Derek Schuff 2014/11/19 19:56:48 isTargetNaCl doesn't work for Non-SFI mode, which
387 } 389 }
388 390
389 bool isTargetHardFloat() const { 391 bool isTargetHardFloat() const {
390 // FIXME: this is invalid for WindowsCE 392 // FIXME: this is invalid for WindowsCE
391 return TargetTriple.getEnvironment() == Triple::GNUEABIHF || 393 return TargetTriple.getEnvironment() == Triple::GNUEABIHF ||
392 TargetTriple.getEnvironment() == Triple::EABIHF || 394 TargetTriple.getEnvironment() == Triple::EABIHF ||
393 isTargetWindows(); 395 isTargetWindows();
394 } 396 }
395 bool isTargetAndroid() const { 397 bool isTargetAndroid() const {
396 return TargetTriple.getEnvironment() == Triple::Android; 398 return TargetTriple.getEnvironment() == Triple::Android;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 455
454 /// GVIsIndirectSymbol - true if the GV will be accessed via an indirect 456 /// GVIsIndirectSymbol - true if the GV will be accessed via an indirect
455 /// symbol. 457 /// symbol.
456 bool GVIsIndirectSymbol(const GlobalValue *GV, Reloc::Model RelocM) const; 458 bool GVIsIndirectSymbol(const GlobalValue *GV, Reloc::Model RelocM) const;
457 459
458 bool useInlineJumpTables() const {return UseInlineJumpTables;} // @LOCALMOD 460 bool useInlineJumpTables() const {return UseInlineJumpTables;} // @LOCALMOD
459 }; 461 };
460 } // End llvm namespace 462 } // End llvm namespace
461 463
462 #endif // ARMSUBTARGET_H 464 #endif // ARMSUBTARGET_H
OLDNEW
« no previous file with comments | « no previous file | lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698