Don't allow user-defined uninitialized const variables to be exported.

Bug: 24607459

User-defined variables that are both uninitialized and const can never
be linked/initialized properly. We limit llvm-rs-cc to only accepting
extern const variables defined in its own headers (such that a proper
initialization value can be provided by the runtime library). This will
allow us to make constants that lldb can refer to from user commands,
since the extern const symbols will remain in the final shared object.

Change-Id: I44dbd680278af637c12868e93487745f78936ed0
10 files changed