[llvm] r203703 - Profile: Add a library for the instrumentation based profiling format

Hans Wennborg hans at chromium.org
Wed Mar 12 13:48:18 PDT 2014


Hi Justin,

On Wed, Mar 12, 2014 at 1:14 PM, Justin Bogner <mail at justinbogner.com> wrote:
> Author: bogner
> Date: Wed Mar 12 15:14:05 2014
> New Revision: 203703
>

[...]

> +struct __attribute__((packed)) ProfileDataHeader {

This breaks my Windows build:

..\include\llvm/Profile/ProfileDataWriter.h(26) : error C2146: syntax error : mi
ssing ';' before identifier 'ProfileDataHeader'
..\include\llvm/Profile/ProfileDataWriter.h(26) : error C2079: 'packed' uses und
efined struct 'llvm::__attribute__'
..\include\llvm/Profile/ProfileDataWriter.h(26) : error C2470: 'ProfileDataHeade
r' : looks like a function definition, but there is no parameter list; skipping
apparent body
..\include\llvm/Profile/ProfileDataWriter.h(44) : error C2065: 'ProfileDataHeade
r' : undeclared identifier
..\include\llvm/Profile/ProfileDataWriter.h(44) : error C2070: ''unknown-type'':
 illegal sizeof operand

Please take a look.

Thanks,
Hans



More information about the llvm-commits mailing list