diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-05-18 22:04:49 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-05-18 22:04:49 +0000 |
commit | 8c34dd82575920209d18f9fb93634886f7edbe26 (patch) | |
tree | c82ae227c389c91d5c0576c84ac0b57e5d527b18 /llvm/lib/Target/TargetMachine.cpp | |
parent | aa7d2d781b5b477ed8751c037c899f7c54e94522 (diff) | |
download | bcm5719-llvm-8c34dd82575920209d18f9fb93634886f7edbe26.tar.gz bcm5719-llvm-8c34dd82575920209d18f9fb93634886f7edbe26.zip |
Delete Reloc::Default.
Having an enum member named Default is quite confusing: Is it distinct
from the others?
This patch removes that member and instead uses Optional<Reloc> in
places where we have a user input that still hasn't been maped to the
default value, which is now clear has no be one of the remaining 3
options.
llvm-svn: 269988
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index 06075e1cc7c..b62471597e0 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -72,10 +72,10 @@ void TargetMachine::resetTargetOptions(const Function &F) const { } /// Returns the code generation relocation model. The choices are static, PIC, -/// and dynamic-no-pic, and target default. +/// and dynamic-no-pic. Reloc::Model TargetMachine::getRelocationModel() const { if (!CodeGenInfo) - return Reloc::Default; + return Reloc::Static; // FIXME return CodeGenInfo->getRelocationModel(); } |