forked from OSchip/llvm-project
Add a fixme to resetTargetOptions to explain why it needs to go
away. llvm-svn: 236009
This commit is contained in:
parent
25c94eb152
commit
35a8a62125
|
@ -54,6 +54,11 @@ TargetMachine::~TargetMachine() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// \brief Reset the target options based on the function's attributes.
|
/// \brief Reset the target options based on the function's attributes.
|
||||||
|
// FIXME: This function needs to go away for a number of reasons:
|
||||||
|
// a) global state on the TargetMachine is terrible in general,
|
||||||
|
// b) there's no default state here to keep,
|
||||||
|
// c) these target options should be passed only on the function
|
||||||
|
// and not on the TargetMachine (via TargetOptions) at all.
|
||||||
void TargetMachine::resetTargetOptions(const Function &F) const {
|
void TargetMachine::resetTargetOptions(const Function &F) const {
|
||||||
#define RESET_OPTION(X, Y) \
|
#define RESET_OPTION(X, Y) \
|
||||||
do { \
|
do { \
|
||||||
|
|
Loading…
Reference in New Issue