[llvm] r180750 - Revert the command line option patch. However, keep the part that makes this pass on Windows. I.e., we don't emit the target dependent attributes in a comment before the function.
Bill Wendling
isanbard at gmail.com
Mon Apr 29 17:19:23 PDT 2013
On Apr 29, 2013, at 5:16 PM, Chris Lattner <clattner at apple.com> wrote:
> On Apr 29, 2013, at 5:14 PM, Bill Wendling <isanbard at gmail.com> wrote:
>> On Apr 29, 2013, at 5:13 PM, Chris Lattner <clattner at apple.com> wrote:
>>
>>> Thanks Bill, shouldn't this also revert this part?
>>>
>>>> /// \brief Return the attributes at the index as a string.
>>>> - std::string getAsString(unsigned Index, bool InAttrGrp = false) const;
>>>> + std::string getAsString(unsigned Index, bool TargetIndependent = true,
>>>> + bool InAttrGrp = false) const;
>>>>
>>>> typedef ArrayRef<Attribute>::iterator iterator;
>>>
>>> Why is this needed on windows?
>>>
>> There is a strange bug on Windows where it doesn't allow me to iterate through the attributes in the way I want. I can try to think up a different way to do it, though…
>
> What is the bug? We want consistent behavior on all hosts. From your description it isn't clear if this is a host or target issue.
>
The bug has to do with an out-of-range value being passed to a vector. I don't have access to a Windows box, so I can't really figure out if it's a host or target issue.
-bw
More information about the llvm-commits
mailing list