projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71b022e
)
Fix AVR build after 777180a32b6107
author
Nico Weber
<thakis@chromium.org>
Wed, 29 Jan 2020 00:22:22 +0000
(19:22 -0500)
committer
Nico Weber
<thakis@chromium.org>
Wed, 29 Jan 2020 00:22:22 +0000
(19:22 -0500)
llvm/lib/Target/AVR/AVRTargetMachine.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/AVR/AVRTargetMachine.cpp
b/llvm/lib/Target/AVR/AVRTargetMachine.cpp
index b33284b73d6327537cce6d6d0c68c30720066abd..0c7136e6f77e85225b1b4a2cc9fe0dea223de77f 100644
(file)
--- a/
llvm/lib/Target/AVR/AVRTargetMachine.cpp
+++ b/
llvm/lib/Target/AVR/AVRTargetMachine.cpp
@@
-49,7
+49,7
@@
AVRTargetMachine::AVRTargetMachine(const Target &T, const Triple &TT,
: LLVMTargetMachine(T, AVRDataLayout, TT, getCPU(CPU), FS, Options,
getEffectiveRelocModel(RM),
getEffectiveCodeModel(CM, CodeModel::Small), OL),
- SubTarget(TT,
getCPU(CPU), FS
, *this) {
+ SubTarget(TT,
std::string(getCPU(CPU)), std::string(FS)
, *this) {
this->TLOF = std::make_unique<AVRTargetObjectFile>();
initAsmInfo();
}