[llvm] r267335 - Declare GlobalValue::LinkageTypes based on unsigned.
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 24 07:19:32 PDT 2016
This broke the build. Reverted in r267341.
> On 2016-Apr-24, at 03:11, NAKAMURA Takumi via llvm-commits <llvm-commits at lists.llvm.org> wrote:
>
> Author: chapuni
> Date: Sun Apr 24 05:11:45 2016
> New Revision: 267335
>
> URL: http://llvm.org/viewvc/llvm-project?rev=267335&view=rev
> Log:
> Declare GlobalValue::LinkageTypes based on unsigned.
>
> Or, "LinkageTypes Linkage : 4;" might be sign-extended on msc.
>
> Modified:
> llvm/trunk/include/llvm/IR/GlobalValue.h
>
> Modified: llvm/trunk/include/llvm/IR/GlobalValue.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/GlobalValue.h?rev=267335&r1=267334&r2=267335&view=diff
> ==============================================================================
> --- llvm/trunk/include/llvm/IR/GlobalValue.h (original)
> +++ llvm/trunk/include/llvm/IR/GlobalValue.h Sun Apr 24 05:11:45 2016
> @@ -37,7 +37,7 @@ class GlobalValue : public Constant {
> GlobalValue(const GlobalValue &) = delete;
> public:
> /// @brief An enumeration for the kinds of linkage for global values.
> - enum LinkageTypes {
> + enum LinkageTypes : unsigned {
> ExternalLinkage = 0,///< Externally visible function
> AvailableExternallyLinkage, ///< Available for inspection, not emission.
> LinkOnceAnyLinkage, ///< Keep one copy of function when linking (inline)
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list