mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Do not include DataTypes.h in llvm-c/lto.h.
This means avoid using uint32_t. This patch reverts r112200 and fixes original problem by fixing argument type in lto.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123038 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "llvm/Support/DataTypes.h"
|
|
||||||
|
|
||||||
#define LTO_API_VERSION 4
|
#define LTO_API_VERSION 4
|
||||||
|
|
||||||
@ -147,7 +146,7 @@ lto_module_set_target_triple(lto_module_t mod, const char *triple);
|
|||||||
/**
|
/**
|
||||||
* Returns the number of symbols in the object module.
|
* Returns the number of symbols in the object module.
|
||||||
*/
|
*/
|
||||||
extern uint32_t
|
extern unsigned int
|
||||||
lto_module_get_num_symbols(lto_module_t mod);
|
lto_module_get_num_symbols(lto_module_t mod);
|
||||||
|
|
||||||
|
|
||||||
@ -155,14 +154,14 @@ lto_module_get_num_symbols(lto_module_t mod);
|
|||||||
* Returns the name of the ith symbol in the object module.
|
* Returns the name of the ith symbol in the object module.
|
||||||
*/
|
*/
|
||||||
extern const char*
|
extern const char*
|
||||||
lto_module_get_symbol_name(lto_module_t mod, uint32_t index);
|
lto_module_get_symbol_name(lto_module_t mod, unsigned int index);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the attributes of the ith symbol in the object module.
|
* Returns the attributes of the ith symbol in the object module.
|
||||||
*/
|
*/
|
||||||
extern lto_symbol_attributes
|
extern lto_symbol_attributes
|
||||||
lto_module_get_symbol_attribute(lto_module_t mod, uint32_t index);
|
lto_module_get_symbol_attribute(lto_module_t mod, unsigned int index);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -132,7 +132,7 @@ void lto_module_set_target_triple(lto_module_t mod, const char *triple)
|
|||||||
//
|
//
|
||||||
// returns the number of symbols in the object module
|
// returns the number of symbols in the object module
|
||||||
//
|
//
|
||||||
uint32_t lto_module_get_num_symbols(lto_module_t mod)
|
unsigned int lto_module_get_num_symbols(lto_module_t mod)
|
||||||
{
|
{
|
||||||
return mod->getSymbolCount();
|
return mod->getSymbolCount();
|
||||||
}
|
}
|
||||||
@ -140,7 +140,7 @@ uint32_t lto_module_get_num_symbols(lto_module_t mod)
|
|||||||
//
|
//
|
||||||
// returns the name of the ith symbol in the object module
|
// returns the name of the ith symbol in the object module
|
||||||
//
|
//
|
||||||
const char* lto_module_get_symbol_name(lto_module_t mod, uint32_t index)
|
const char* lto_module_get_symbol_name(lto_module_t mod, unsigned int index)
|
||||||
{
|
{
|
||||||
return mod->getSymbolName(index);
|
return mod->getSymbolName(index);
|
||||||
}
|
}
|
||||||
@ -150,7 +150,7 @@ const char* lto_module_get_symbol_name(lto_module_t mod, uint32_t index)
|
|||||||
// returns the attributes of the ith symbol in the object module
|
// returns the attributes of the ith symbol in the object module
|
||||||
//
|
//
|
||||||
lto_symbol_attributes lto_module_get_symbol_attribute(lto_module_t mod,
|
lto_symbol_attributes lto_module_get_symbol_attribute(lto_module_t mod,
|
||||||
uint32_t index)
|
unsigned int index)
|
||||||
{
|
{
|
||||||
return mod->getSymbolAttributes(index);
|
return mod->getSymbolAttributes(index);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user