Metadata/gc2stack compile fixes to accomodate LLVM API changes.

This commit is contained in:
David Nadlinger
2012-07-04 22:47:01 +02:00
parent a3a511ca55
commit ebbbfdd4ac
5 changed files with 44 additions and 41 deletions

View File

@@ -20,15 +20,6 @@
#include "llvm/Metadata.h"
typedef llvm::Value MDNodeField;
// Use getNumElements() and getElement() to access elements.
inline unsigned MD_GetNumElements(llvm::MDNode* N) {
return N->getNumElements();
}
inline MDNodeField* MD_GetElement(llvm::MDNode* N, unsigned i) {
return N->getElement(i);
}
#define METADATA_LINKAGE_TYPE llvm::GlobalValue::WeakODRLinkage
// *** Metadata for TypeInfo instances ***