mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
Fix layering after ed4718eccb12.
That commit added a dependency from IR to Analysis, which isn't allowed. Fix it by duplicating a string constant.
This commit is contained in:
parent
988eea1dc5
commit
91b7513f11
@ -14,7 +14,6 @@
|
||||
|
||||
#include "llvm/IR/AutoUpgrade.h"
|
||||
#include "llvm/ADT/StringSwitch.h"
|
||||
#include "llvm/Analysis/ObjCARCUtil.h"
|
||||
#include "llvm/IR/Constants.h"
|
||||
#include "llvm/IR/DIBuilder.h"
|
||||
#include "llvm/IR/DebugInfo.h"
|
||||
@ -3997,7 +3996,7 @@ bool llvm::UpgradeDebugInfo(Module &M) {
|
||||
/// returns true if module is modified.
|
||||
static bool UpgradeRetainReleaseMarker(Module &M) {
|
||||
bool Changed = false;
|
||||
const char *MarkerKey = objcarc::getRVMarkerModuleFlagStr();
|
||||
const char *MarkerKey = "clang.arc.retainAutoreleasedReturnValueMarker";
|
||||
NamedMDNode *ModRetainReleaseMarker = M.getNamedMetadata(MarkerKey);
|
||||
if (ModRetainReleaseMarker) {
|
||||
MDNode *Op = ModRetainReleaseMarker->getOperand(0);
|
||||
|
Loading…
Reference in New Issue
Block a user