[llvm-commits] Patch too make LLVM build on MSVC

Aaron Gray aaronngray.lists at googlemail.com
Sun Mar 14 13:58:26 PDT 2010


Can someone apply this please.

Need to include header for llvm/MC/MCAsmInfo rather than just 'class
MCAsmInfo' for MSVC.

Aaron

Index: lib/CodeGen/GCMetadataPrinter.cpp
===================================================================
--- lib/CodeGen/GCMetadataPrinter.cpp   (revision 98508)
+++ lib/CodeGen/GCMetadataPrinter.cpp   (working copy)
@@ -12,7 +12,8 @@
 //===----------------------------------------------------------------------===/
/

 #include "llvm/CodeGen/GCMetadataPrinter.h"
-class MCAsmInfo;
+#include "llvm/MC/MCAsmInfo.h"
+
 using namespace llvm;

 GCMetadataPrinter::GCMetadataPrinter() { }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100314/ececd8de/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MCMetadataPrinter.patch
Type: application/octet-stream
Size: 527 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100314/ececd8de/attachment.obj>


More information about the llvm-commits mailing list