summaryrefslogtreecommitdiff
path: root/include/clang/Driver/ToolChain.h
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-11-24 21:09:32 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-11-24 21:09:32 +0100
commitb2dcbac1d82fc2e502848a020ee1544a2626406a (patch)
treec49b906e0f08d7bd883f021a88c268ebfc8f3b1b /include/clang/Driver/ToolChain.h
parent68ee9d9993baa7bc062d255517c5c4b654004bc2 (diff)
parentb5fa2f04f037a5d5caa858daf270f9b7406a7a36 (diff)
downloadclang-b2dcbac1d82fc2e502848a020ee1544a2626406a.tar.gz
clang-b2dcbac1d82fc2e502848a020ee1544a2626406a.tar.bz2
clang-b2dcbac1d82fc2e502848a020ee1544a2626406a.tar.xz
Merge branch 'release-3.2' into embtk-support-release-3.2
Diffstat (limited to 'include/clang/Driver/ToolChain.h')
-rw-r--r--include/clang/Driver/ToolChain.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/include/clang/Driver/ToolChain.h b/include/clang/Driver/ToolChain.h
index 71736d666e..509e08d67e 100644
--- a/include/clang/Driver/ToolChain.h
+++ b/include/clang/Driver/ToolChain.h
@@ -148,6 +148,10 @@ public:
/// IsObjCDefaultSynthPropertiesDefault - Does this tool chain enable
/// -fobjc-default-synthesize-properties by default.
virtual bool IsObjCDefaultSynthPropertiesDefault() const { return false; }
+
+ /// IsEncodeExtendedBlockSignatureDefault - Does this tool chain enable
+ /// -fencode-extended-block-signature by default.
+ virtual bool IsEncodeExtendedBlockSignatureDefault() const { return false; }
/// IsObjCNonFragileABIDefault - Does this tool chain set
/// -fobjc-nonfragile-abi by default.
@@ -172,14 +176,13 @@ public:
/// by default.
virtual bool IsUnwindTablesDefault() const;
- /// GetDefaultRelocationModel - Return the LLVM name of the default
- /// relocation model for this tool chain.
- virtual const char *GetDefaultRelocationModel() const = 0;
+ /// \brief Test whether this toolchain defaults to PIC.
+ virtual bool isPICDefault() const = 0;
- /// GetForcedPicModel - Return the LLVM name of the forced PIC model
- /// for this tool chain, or 0 if this tool chain does not force a
- /// particular PIC mode.
- virtual const char *GetForcedPicModel() const = 0;
+ /// \brief Tests whether this toolchain forces its default for PIC or non-PIC.
+ /// If this returns true, any PIC related flags should be ignored and instead
+ /// the result of \c isPICDefault() is used exclusively.
+ virtual bool isPICDefaultForced() const = 0;
/// SupportsProfiling - Does this tool chain support -pg.
virtual bool SupportsProfiling() const { return true; }